@@ -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 | ?> |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | { |
| 91 | 91 | if ($this->invoiceable) { |
| 92 | 92 | $task = new org_openpsa_projects_task_dba($this->task); |
| 93 | - $time_slot = (float)$task->get_parameter('org.openpsa.projects.projectbroker', 'minimum_slot'); |
|
| 93 | + $time_slot = (float) $task->get_parameter('org.openpsa.projects.projectbroker', 'minimum_slot'); |
|
| 94 | 94 | if (empty($time_slot)) { |
| 95 | 95 | $time_slot = (float) midcom_baseclasses_components_configuration::get('org.openpsa.projects', 'config')->get('default_minimum_time_slot'); |
| 96 | 96 | if (empty($time_slot)) { |
@@ -98,7 +98,8 @@ |
||
| 98 | 98 | if ($this->old_task) { |
| 99 | 99 | self::update_cache(new org_openpsa_projects_task_dba($this->old_task)); |
| 100 | 100 | } |
| 101 | - } catch (midcom_error $e) { |
|
| 101 | + } |
|
| 102 | + catch (midcom_error $e) { |
|
| 102 | 103 | $e->log(); |
| 103 | 104 | } |
| 104 | 105 | |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | } |
| 175 | 175 | if (!midcom::get()->auth->admin) { |
| 176 | 176 | $user_id = midcom::get()->auth->acl->get_user_id(); |
| 177 | - if ( !$this->data[$type . '_guid'] |
|
| 177 | + if (!$this->data[$type . '_guid'] |
|
| 178 | 178 | || !midcom::get()->auth->acl->can_do_byguid('midgard:read', $this->data[$type . '_guid'], midcom_db_topic::class, $user_id)) { |
| 179 | 179 | return null; |
| 180 | 180 | } |