@@ -71,7 +71,8 @@ |
||
| 71 | 71 | $owner = org_openpsa_contacts_person_dba::get_cached($salesproject->owner); |
| 72 | 72 | $row['index_owner'] = $owner->name; |
| 73 | 73 | $row['owner'] = org_openpsa_widgets_contact::get($owner->guid)->show_inline(); |
| 74 | - } catch (midcom_error $e) { |
|
| 74 | + } |
|
| 75 | + catch (midcom_error $e) { |
|
| 75 | 76 | $e->log(); |
| 76 | 77 | } |
| 77 | 78 | $row['amount'] = $object->pricePerUnit * $object->units; |
@@ -69,7 +69,8 @@ |
||
| 69 | 69 | if (empty(self::$_seen[$company_id])) { |
| 70 | 70 | try { |
| 71 | 71 | $company = new org_openpsa_contacts_group_dba($company_id); |
| 72 | - } catch (midcom_error $e) { |
|
| 72 | + } |
|
| 73 | + catch (midcom_error $e) { |
|
| 73 | 74 | return; |
| 74 | 75 | } |
| 75 | 76 | self::$_seen[$company->id] = true; |
@@ -114,7 +114,8 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | try { |
| 116 | 116 | $person = org_openpsa_contacts_person_dba::get_cached($src); |
| 117 | - } catch (midcom_error $e) { |
|
| 117 | + } |
|
| 118 | + catch (midcom_error $e) { |
|
| 118 | 119 | $widget = new self(); |
| 119 | 120 | $cache[$src] = $widget; |
| 120 | 121 | return $widget; |
@@ -323,7 +324,8 @@ discard block |
||
| 323 | 324 | foreach ($memberships as $data) { |
| 324 | 325 | try { |
| 325 | 326 | $group = org_openpsa_contacts_group_dba::get_cached($data['gid']); |
| 326 | - } catch (midcom_error $e) { |
|
| 327 | + } |
|
| 328 | + catch (midcom_error $e) { |
|
| 327 | 329 | $e->log(); |
| 328 | 330 | continue; |
| 329 | 331 | } |
@@ -163,7 +163,8 @@ |
||
| 163 | 163 | try { |
| 164 | 164 | $task = org_openpsa_projects_task_dba::get_cached($hour_report->task); |
| 165 | 165 | $options['success_url'] = 'hours/task/' . $task->guid . '/'; |
| 166 | - } catch (midcom_error $e) { |
|
| 166 | + } |
|
| 167 | + catch (midcom_error $e) { |
|
| 167 | 168 | $e->log(); |
| 168 | 169 | } |
| 169 | 170 | return $this->get_workflow('delete', $options)->run(); |
@@ -132,7 +132,8 @@ |
||
| 132 | 132 | } elseif ((int) $args[0] > 0) { |
| 133 | 133 | try { |
| 134 | 134 | $this->parent = new org_openpsa_products_product_group_dba((int) $args[0]); |
| 135 | - } catch (midcom_error $e) { |
|
| 135 | + } |
|
| 136 | + catch (midcom_error $e) { |
|
| 136 | 137 | $e->log(); |
| 137 | 138 | } |
| 138 | 139 | } |
@@ -57,7 +57,8 @@ discard block |
||
| 57 | 57 | try { |
| 58 | 58 | midcom::get()->dynamic_load($batch_url); |
| 59 | 59 | $ret = true; |
| 60 | - } catch (midcom_error $e) { |
|
| 60 | + } |
|
| 61 | + catch (midcom_error $e) { |
|
| 61 | 62 | $ret = $e->getMessage(); |
| 62 | 63 | } |
| 63 | 64 | ob_end_clean(); |
@@ -83,7 +84,8 @@ discard block |
||
| 83 | 84 | midcom::get()->auth->request_sudo($this->_component); |
| 84 | 85 | try { |
| 85 | 86 | $campaign = new org_openpsa_directmarketing_campaign_dba($args['campaign_guid']); |
| 86 | - } catch (midcom_error $e) { |
|
| 87 | + } |
|
| 88 | + catch (midcom_error $e) { |
|
| 87 | 89 | $handler->print_error("{$args['campaign_guid']} is not a valid campaign GUID"); |
| 88 | 90 | return false; |
| 89 | 91 | } |
@@ -269,7 +269,8 @@ |
||
| 269 | 269 | $guid = $mc_parameter->get_subkey($parameter_key, 'parentguid'); |
| 270 | 270 | try { |
| 271 | 271 | $parent = midcom::get()->dbfactory->get_object_by_guid($guid); |
| 272 | - } catch (midcom_error $e) { |
|
| 272 | + } |
|
| 273 | + catch (midcom_error $e) { |
|
| 273 | 274 | $e->log(); |
| 274 | 275 | continue; |
| 275 | 276 | } |
@@ -59,7 +59,8 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | try { |
| 61 | 61 | $person = new org_openpsa_contacts_person_dba($member->person); |
| 62 | - } catch (midcom_error $e) { |
|
| 62 | + } |
|
| 63 | + catch (midcom_error $e) { |
|
| 63 | 64 | $e->log(); |
| 64 | 65 | return; |
| 65 | 66 | } |
@@ -82,7 +83,8 @@ discard block |
||
| 82 | 83 | $row['organization_member'] = $membership; |
| 83 | 84 | try { |
| 84 | 85 | $row['organization'] = org_openpsa_contacts_group_dba::get_cached($membership->gid); |
| 85 | - } catch (midcom_error $e) { |
|
| 86 | + } |
|
| 87 | + catch (midcom_error $e) { |
|
| 86 | 88 | debug_add("Error fetching org_openpsa_contacts_group_dba #{$membership->gid}, skipping", MIDCOM_LOG_WARN); |
| 87 | 89 | continue; |
| 88 | 90 | } |
@@ -142,7 +142,8 @@ |
||
| 142 | 142 | try { |
| 143 | 143 | $person = org_openpsa_contacts_person_dba::get_cached($link->person); |
| 144 | 144 | $segment = $person->get_parameter('org.openpsa.directmarketing.segments', $segmentation_param); |
| 145 | - } catch (midcom_error $e) { |
|
| 145 | + } |
|
| 146 | + catch (midcom_error $e) { |
|
| 146 | 147 | } |
| 147 | 148 | if (empty($segment)) { |
| 148 | 149 | $segment = $this->_l10n->get('no segment'); |