@@ -6,7 +6,8 @@ |
||
| 6 | 6 | foreach ($data['prospects'] as $prospect) { |
| 7 | 7 | try { |
| 8 | 8 | $person = org_openpsa_contacts_person_dba::get_cached($prospect->person); |
| 9 | - } catch (midcom_error $e) { |
|
| 9 | + } |
|
| 10 | + catch (midcom_error $e) { |
|
| 10 | 11 | continue; |
| 11 | 12 | } ?> |
| 12 | 13 | <person> |
@@ -31,7 +31,8 @@ |
||
| 31 | 31 | try { |
| 32 | 32 | $customer = new org_openpsa_contacts_group_dba($customer); |
| 33 | 33 | $customer_title = $customer->official; |
| 34 | - } catch (midcom_error $e) { |
|
| 34 | + } |
|
| 35 | + catch (midcom_error $e) { |
|
| 35 | 36 | $customer_title = $data['l10n']->get('no customer'); |
| 36 | 37 | } |
| 37 | 38 | |
@@ -35,7 +35,8 @@ discard block |
||
| 35 | 35 | if ($data['contacts_url']) { |
| 36 | 36 | $row['customer'] = "<a href=\"{$data['contacts_url']}group/{$customer->guid}/\">{$label}</a>"; |
| 37 | 37 | } |
| 38 | - } catch (midcom_error $e) { |
|
| 38 | + } |
|
| 39 | + catch (midcom_error $e) { |
|
| 39 | 40 | $e->log(); |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -51,7 +52,8 @@ discard block |
||
| 51 | 52 | if ($data['contacts_url']) { |
| 52 | 53 | $row['customerContact'] = "<a href=\"{$data['contacts_url']}person/{$customer->guid}/\">{$label}</a>"; |
| 53 | 54 | } |
| 54 | - } catch (midcom_error $e) { |
|
| 55 | + } |
|
| 56 | + catch (midcom_error $e) { |
|
| 55 | 57 | $e->log(); |
| 56 | 58 | } |
| 57 | 59 | } |
@@ -63,7 +65,8 @@ discard block |
||
| 63 | 65 | $owner_widget = org_openpsa_widgets_contact::get($salesproject->owner); |
| 64 | 66 | $row['index_owner'] = $owner->rname; |
| 65 | 67 | $row['owner'] = $owner_widget->show_inline(); |
| 66 | - } catch (midcom_error $e) { |
|
| 68 | + } |
|
| 69 | + catch (midcom_error $e) { |
|
| 67 | 70 | $row['index_owner'] = ''; |
| 68 | 71 | $row['owner'] = ''; |
| 69 | 72 | } |
@@ -17,7 +17,8 @@ |
||
| 17 | 17 | try { |
| 18 | 18 | $group = org_openpsa_products_product_group_dba::get_cached($product['productGroup']); |
| 19 | 19 | $desc .= $group->title . ', '; |
| 20 | - } catch (midcom_error $e) { |
|
| 20 | + } |
|
| 21 | + catch (midcom_error $e) { |
|
| 21 | 22 | $e->log(); |
| 22 | 23 | } |
| 23 | 24 | if ($product['delivery'] == org_openpsa_products_product_dba::DELIVERY_SINGLE) { |
@@ -21,7 +21,8 @@ |
||
| 21 | 21 | $original = new midcom_db_attachment($image->attachment); |
| 22 | 22 | $original_url = midcom_db_attachment::get_url($original); |
| 23 | 23 | $name = $original->name; |
| 24 | - } catch (midcom_error $e) { |
|
| 24 | + } |
|
| 25 | + catch (midcom_error $e) { |
|
| 25 | 26 | $url = MIDCOM_STATIC_URL . '/stock-icons/mime/gnome-text-blank.png'; |
| 26 | 27 | $name = $data['l10n']->get('attachment missing'); |
| 27 | 28 | $original_url = ''; |
@@ -73,7 +73,8 @@ discard block |
||
| 73 | 73 | } else { |
| 74 | 74 | $entry['customer'] = $customer->official; |
| 75 | 75 | } |
| 76 | - } catch (midcom_error $e) { |
|
| 76 | + } |
|
| 77 | + catch (midcom_error $e) { |
|
| 77 | 78 | } |
| 78 | 79 | |
| 79 | 80 | if ($entry['status'] === 'canceled') { |
@@ -85,7 +86,8 @@ discard block |
||
| 85 | 86 | $entry['index_contact'] = $contact->rname; |
| 86 | 87 | $contact_card = org_openpsa_widgets_contact::get($invoice->customerContact); |
| 87 | 88 | $entry['contact'] = $contact_card->show_inline(); |
| 88 | - } catch (midcom_error $e) { |
|
| 89 | + } |
|
| 90 | + catch (midcom_error $e) { |
|
| 89 | 91 | } |
| 90 | 92 | |
| 91 | 93 | $entries[] = $entry; |
@@ -61,7 +61,8 @@ |
||
| 61 | 61 | try { |
| 62 | 62 | ?>&(data['code']:p);<?php |
| 63 | 63 | |
| 64 | - } catch (Exception $e) { |
|
| 64 | + } |
|
| 65 | + catch (Exception $e) { |
|
| 65 | 66 | echo '<div class="shell-error">' . $e->getMessage() . '</div>'; |
| 66 | 67 | echo htmlentities($e->getTraceAsString()); |
| 67 | 68 | } |
@@ -4,7 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | try { |
| 6 | 6 | $topic = midcom_db_topic::get_cached($document->topic_guid); |
| 7 | -} catch (midcom_error $e) { |
|
| 7 | +} |
|
| 8 | +catch (midcom_error $e) { |
|
| 8 | 9 | $e->log(); |
| 9 | 10 | } |
| 10 | 11 | ?> |
@@ -51,7 +51,8 @@ discard block |
||
| 51 | 51 | try { |
| 52 | 52 | $deliverable = org_openpsa_sales_salesproject_deliverable_dba::get_cached($task->get_agreement()); |
| 53 | 53 | $item->deliverable = $deliverable->id; |
| 54 | - } catch (midcom_error $e) { |
|
| 54 | + } |
|
| 55 | + catch (midcom_error $e) { |
|
| 55 | 56 | $e->log(); |
| 56 | 57 | } |
| 57 | 58 | $item->invoice = $invoice->id; |
@@ -133,7 +134,8 @@ discard block |
||
| 133 | 134 | $customer = org_openpsa_contacts_group_dba::get_cached($customer_id); |
| 134 | 135 | $data['customer_label'] = $customer->official; |
| 135 | 136 | $data['disabled'] = ''; |
| 136 | - } catch (midcom_error $e) { |
|
| 137 | + } |
|
| 138 | + catch (midcom_error $e) { |
|
| 137 | 139 | $data['customer_label'] = $this->_l10n->get('no customer'); |
| 138 | 140 | $data['disabled'] = ' disabled="disabled"'; |
| 139 | 141 | } |
@@ -156,7 +158,8 @@ discard block |
||
| 156 | 158 | } else { |
| 157 | 159 | $data['invoiceable_units'] = $task->plannedHours; |
| 158 | 160 | } |
| 159 | - } catch (midcom_error $e) { |
|
| 161 | + } |
|
| 162 | + catch (midcom_error $e) { |
|
| 160 | 163 | $e->log(); |
| 161 | 164 | if ($this->_config->get('default_hourly_price')) { |
| 162 | 165 | $data['default_price'] = $this->_config->get('default_hourly_price'); |