@@ -27,7 +27,8 @@ |
||
27 | 27 | try { |
28 | 28 | midcom::get()->dbfactory->get_object_by_guid($result->fromGuid); |
29 | 29 | midcom::get()->dbfactory->get_object_by_guid($result->toGuid); |
30 | - } catch (midcom_error $e) { |
|
30 | + } |
|
31 | + catch (midcom_error $e) { |
|
31 | 32 | echo $i . "/" . $total . ": Deleting relatedto #" . $result->id . "\n"; |
32 | 33 | $result->delete(); |
33 | 34 | } |
@@ -28,7 +28,8 @@ |
||
28 | 28 | foreach ($qb->execute() as $feed) { |
29 | 29 | try { |
30 | 30 | midcom_db_topic::get_cached($feed->node); |
31 | - } catch (midcom_error $e) { |
|
31 | + } |
|
32 | + catch (midcom_error $e) { |
|
32 | 33 | debug_add("Node #{$feed->node} does not exist, skipping feed #{$feed->id}", MIDCOM_LOG_ERROR); |
33 | 34 | continue; |
34 | 35 | } |
@@ -32,7 +32,8 @@ |
||
32 | 32 | foreach ($qb->execute() as $article) { |
33 | 33 | try { |
34 | 34 | $dm->set_storage($article); |
35 | - } catch (midcom_error $e) { |
|
35 | + } |
|
36 | + catch (midcom_error $e) { |
|
36 | 37 | $e->log(MIDCOM_LOG_WARN); |
37 | 38 | continue; |
38 | 39 | } |
@@ -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; |