@@ -55,7 +55,8 @@ |
||
55 | 55 | $guid = $parts[1]; |
56 | 56 | try { |
57 | 57 | $attachments[$parts[0]] = midcom_db_attachment::get_cached($guid); |
58 | - } catch (midcom_error $e) { |
|
58 | + } |
|
59 | + catch (midcom_error $e) { |
|
59 | 60 | $e->log(); |
60 | 61 | } |
61 | 62 | } |
@@ -35,7 +35,8 @@ |
||
35 | 35 | try { |
36 | 36 | midcom::get()->dbfactory->get_object_by_guid($param->name); |
37 | 37 | $tried[$param->name] = true; |
38 | - } catch (midcom_error $e) { |
|
38 | + } |
|
39 | + catch (midcom_error $e) { |
|
39 | 40 | $tried[$param->name] = false; |
40 | 41 | } |
41 | 42 | } |
@@ -30,7 +30,8 @@ |
||
30 | 30 | $member->require_do('midgard:update'); |
31 | 31 | $member->extra = $_POST['title']; |
32 | 32 | $response->status = $member->update(); |
33 | - } catch (midcom_error $e) { |
|
33 | + } |
|
34 | + catch (midcom_error $e) { |
|
34 | 35 | $e->log(); |
35 | 36 | } |
36 | 37 | $response->message = midcom_connection::get_error_string(); |
@@ -25,7 +25,8 @@ discard block |
||
25 | 25 | midcom::get()->auth->request_sudo($this->_component); |
26 | 26 | try { |
27 | 27 | $person = new midcom_db_person($args['guid']); |
28 | - } catch (midcom_error $e) { |
|
28 | + } |
|
29 | + catch (midcom_error $e) { |
|
29 | 30 | $handler->print_error('Person with guid #' . $args['guid'] . ' does not exist'); |
30 | 31 | midcom::get()->auth->drop_sudo(); |
31 | 32 | return false; |
@@ -33,7 +34,8 @@ discard block |
||
33 | 34 | $accounthelper = new org_openpsa_user_accounthelper($person); |
34 | 35 | try { |
35 | 36 | $accounthelper->reopen_account(); |
36 | - } catch (midcom_error $e) { |
|
37 | + } |
|
38 | + catch (midcom_error $e) { |
|
37 | 39 | $handler->print_error($e->getMessage()); |
38 | 40 | midcom::get()->auth->drop_sudo(); |
39 | 41 | return false; |
@@ -91,7 +91,8 @@ |
||
91 | 91 | if ($recipient->guid == $this->metadata->creator) { |
92 | 92 | return org_openpsa_projects_workflow::accept($task, 0, $this->comment); |
93 | 93 | } |
94 | - } catch (midcom_error $e) { |
|
94 | + } |
|
95 | + catch (midcom_error $e) { |
|
95 | 96 | $e->log(); |
96 | 97 | } |
97 | 98 | } |
@@ -69,7 +69,8 @@ |
||
69 | 69 | try { |
70 | 70 | $parent = new org_openpsa_projects_task_dba($this->task); |
71 | 71 | $parent->update_cache(); |
72 | - } catch (midcom_error $e) { |
|
72 | + } |
|
73 | + catch (midcom_error $e) { |
|
73 | 74 | return false; |
74 | 75 | } |
75 | 76 | if ($start) { |
@@ -124,7 +124,8 @@ |
||
124 | 124 | { |
125 | 125 | try { |
126 | 126 | $task = new org_openpsa_projects_task_dba($args['task']); |
127 | - } catch (midcom_error $e) { |
|
127 | + } |
|
128 | + catch (midcom_error $e) { |
|
128 | 129 | $e->log(); |
129 | 130 | return false; |
130 | 131 | } |
@@ -44,7 +44,8 @@ |
||
44 | 44 | if (!$obj instanceof org_openpsa_contacts_person_dba) { |
45 | 45 | try { |
46 | 46 | $obj = new org_openpsa_contacts_person_dba($obj->id); |
47 | - } catch (midcom_error $e) { |
|
47 | + } |
|
48 | + catch (midcom_error $e) { |
|
48 | 49 | $e->log(); |
49 | 50 | continue; |
50 | 51 | } |
@@ -102,7 +102,8 @@ |
||
102 | 102 | $fields['customer']['type_config']['options'] = array(0 => '', $customer->id => $customer->official); |
103 | 103 | |
104 | 104 | $this->_defaults['customer'] = $customer->id; |
105 | - } catch (midcom_error $e) { |
|
105 | + } |
|
106 | + catch (midcom_error $e) { |
|
106 | 107 | $customer = new org_openpsa_contacts_person_dba($args[0]); |
107 | 108 | $this->_defaults['customerContact'] = $customer->id; |
108 | 109 | $fields['customer']['type_config']['options'] = org_openpsa_helpers_list::task_groups(new org_openpsa_sales_salesproject_dba, 'id', array($customer->id => true)); |