@@ -93,7 +93,8 @@ |
||
| 93 | 93 | try { |
| 94 | 94 | $mgdschemaclass = $this->__mgdschema_class_name__; |
| 95 | 95 | $this->__object = new $mgdschemaclass($id); |
| 96 | - } catch (mgd_exception $e) { |
|
| 96 | + } |
|
| 97 | + catch (mgd_exception $e) { |
|
| 97 | 98 | debug_add('Constructing ' . $this->__mgdschema_class_name__ . ' object ' . $id . ' failed, reason: ' . $e->getMessage(), MIDCOM_LOG_WARN); |
| 98 | 99 | throw new midcom_error_midgard($e, $id); |
| 99 | 100 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | $this->__object = $id; |
| 73 | 73 | } else { |
| 74 | - if ( is_int($id) |
|
| 74 | + if (is_int($id) |
|
| 75 | 75 | && $id < 1) { |
| 76 | 76 | throw new midcom_error($id . ' is not a valid database ID'); |
| 77 | 77 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | //Some useful information for performance tuning |
| 88 | - if ( midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG |
|
| 88 | + if (midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG |
|
| 89 | 89 | && $this->__object->guid) { |
| 90 | 90 | static $guids = []; |
| 91 | 91 | static $total = 0; |