@@ -112,7 +112,8 @@ |
||
| 112 | 112 | foreach ($qb->execute() as $article) { |
| 113 | 113 | try { |
| 114 | 114 | $datamanager->set_storage($article); |
| 115 | - } catch (midcom_error $e) { |
|
| 115 | + } |
|
| 116 | + catch (midcom_error $e) { |
|
| 116 | 117 | $e->log(); |
| 117 | 118 | continue; |
| 118 | 119 | } |
@@ -29,7 +29,8 @@ |
||
| 29 | 29 | foreach ($qb->execute() as $article) { |
| 30 | 30 | try { |
| 31 | 31 | $datamanager->set_storage($article); |
| 32 | - } catch (midcom_error $e) { |
|
| 32 | + } |
|
| 33 | + catch (midcom_error $e) { |
|
| 33 | 34 | $e->log(MIDCOM_LOG_WARN); |
| 34 | 35 | continue; |
| 35 | 36 | } |
@@ -93,7 +93,8 @@ |
||
| 93 | 93 | // ->source will always contain the document GUID |
| 94 | 94 | $data['document'] = new org_openpsa_documents_document_dba($document->source); |
| 95 | 95 | $this->datamanager->set_storage($data['document']); |
| 96 | - } catch (midcom_error $e) { |
|
| 96 | + } |
|
| 97 | + catch (midcom_error $e) { |
|
| 97 | 98 | $e->log(); |
| 98 | 99 | continue; |
| 99 | 100 | } |
@@ -8,7 +8,8 @@ |
||
| 8 | 8 | if ($customer->orgOpenpsaObtype <= org_openpsa_contacts_group_dba::MYCONTACTS) { |
| 9 | 9 | $customer = false; |
| 10 | 10 | } |
| 11 | -} catch (midcom_error $e) { |
|
| 11 | +} |
|
| 12 | +catch (midcom_error $e) { |
|
| 12 | 13 | $customer = false; |
| 13 | 14 | } |
| 14 | 15 | |
@@ -103,7 +103,8 @@ |
||
| 103 | 103 | try { |
| 104 | 104 | midcom_db_topic::get_cached($node_guid); |
| 105 | 105 | $available_generators[$component] = midcom::get()->i18n->get_string($component, $component); |
| 106 | - } catch (midcom_error $e) { |
|
| 106 | + } |
|
| 107 | + catch (midcom_error $e) { |
|
| 107 | 108 | debug_add("topic for component '{$component}' not found or accessible"); |
| 108 | 109 | } |
| 109 | 110 | } |
@@ -76,7 +76,8 @@ |
||
| 76 | 76 | } else { |
| 77 | 77 | try { |
| 78 | 78 | $this->initialize_index_article($topic); |
| 79 | - } catch (midcom_error $e) { |
|
| 79 | + } |
|
| 80 | + catch (midcom_error $e) { |
|
| 80 | 81 | // Could not create index |
| 81 | 82 | $topic->delete(); |
| 82 | 83 | throw $e; |
@@ -121,7 +121,8 @@ |
||
| 121 | 121 | |
| 122 | 122 | try { |
| 123 | 123 | $response = $client->send($request); |
| 124 | - } catch (Exception $e) { |
|
| 124 | + } |
|
| 125 | + catch (Exception $e) { |
|
| 125 | 126 | $this->error = $e->getMessage(); |
| 126 | 127 | debug_add("Got error '{$this->error}' from HTTP request", MIDCOM_LOG_INFO); |
| 127 | 128 | return false; |
@@ -115,7 +115,8 @@ |
||
| 115 | 115 | MIDCOM_TOOLBAR_GLYPHICON => 'money', |
| 116 | 116 | ]; |
| 117 | 117 | } |
| 118 | - } catch (midcom_error $e) { |
|
| 118 | + } |
|
| 119 | + catch (midcom_error $e) { |
|
| 119 | 120 | } |
| 120 | 121 | } |
| 121 | 122 | |
@@ -114,7 +114,8 @@ discard block |
||
| 114 | 114 | foreach ($hours as $guid => $row) { |
| 115 | 115 | try { |
| 116 | 116 | $task = org_openpsa_projects_task_dba::get_cached($row['task']); |
| 117 | - } catch (midcom_error $e) { |
|
| 117 | + } |
|
| 118 | + catch (midcom_error $e) { |
|
| 118 | 119 | // Task couldn't be loaded, probably because of ACL |
| 119 | 120 | continue; |
| 120 | 121 | } |
@@ -127,7 +128,8 @@ discard block |
||
| 127 | 128 | $person_object = org_openpsa_contacts_person_dba::get_cached($row['person']); |
| 128 | 129 | $person_label = $this->_get_list_link($person_object->name, null, null, $row['person']); |
| 129 | 130 | $person_name = $person_object->name; |
| 130 | - } catch (midcom_error $e) { |
|
| 131 | + } |
|
| 132 | + catch (midcom_error $e) { |
|
| 131 | 133 | $person_label = $this->_l10n->get('no person'); |
| 132 | 134 | $person_name = ''; |
| 133 | 135 | } |