@@ -237,7 +237,7 @@ |
||
| 237 | 237 | $invoice_item->pricePerUnit = $deliverable->pricePerUnit; |
| 238 | 238 | $invoice_item->deliverable = $deliverable->id; |
| 239 | 239 | //calculate price |
| 240 | - if ( $deliverable->invoiceByActualUnits |
|
| 240 | + if ($deliverable->invoiceByActualUnits |
|
| 241 | 241 | || $deliverable->plannedUnits == 0) { |
| 242 | 242 | $invoice_item->units = $hours; |
| 243 | 243 | } else { |
@@ -120,14 +120,16 @@ |
||
| 120 | 120 | if (!empty($this->customer)) { |
| 121 | 121 | try { |
| 122 | 122 | return org_openpsa_contacts_group_dba::get_cached($this->customer); |
| 123 | - } catch (midcom_error $e) { |
|
| 123 | + } |
|
| 124 | + catch (midcom_error $e) { |
|
| 124 | 125 | $e->log(); |
| 125 | 126 | } |
| 126 | 127 | } |
| 127 | 128 | if (!empty($this->customerContact)) { |
| 128 | 129 | try { |
| 129 | 130 | return org_openpsa_contacts_person_dba::get_cached($this->customerContact); |
| 130 | - } catch (midcom_error $e) { |
|
| 131 | + } |
|
| 132 | + catch (midcom_error $e) { |
|
| 131 | 133 | $e->log(); |
| 132 | 134 | } |
| 133 | 135 | } |
@@ -94,7 +94,8 @@ |
||
| 94 | 94 | } |
| 95 | 95 | try { |
| 96 | 96 | $this->_storage = new midgard_group($id); |
| 97 | - } catch (Exception $e) { |
|
| 97 | + } |
|
| 98 | + catch (Exception $e) { |
|
| 98 | 99 | debug_add('Tried to load a midcom_core_group, but got error ' . $e->getMessage(), MIDCOM_LOG_ERROR); |
| 99 | 100 | debug_print_r('Passed argument was:', $id); |
| 100 | 101 | throw new midcom_error($e->getMessage()); |
@@ -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 | } |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | return false; |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | - if ( !empty($this->_old_username) |
|
| 197 | + if (!empty($this->_old_username) |
|
| 198 | 198 | && $this->_old_username !== $new_username) { |
| 199 | 199 | if (!$history = @unserialize($this->_person->get_parameter('midcom', 'username_history'))) { |
| 200 | 200 | $history = []; |
@@ -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 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <div class="content-with-sidebar"> |
| 2 | 2 | <div class="main"> |
| 3 | 3 | <?php |
| 4 | - $data['view']->display_view(); |
|
| 4 | + $data['view']->display_view(); |
|
| 5 | 5 | $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX); |
| 6 | 6 | midcom::get()->dynamic_load($prefix . 'members/' . $data['group']->guid . '/'); |
| 7 | 7 | ?> |