Index: branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r14888 -r14989 --- branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 14888) +++ branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 14989) @@ -1,6 +1,6 @@ getObject(); /* @var $object kDBList */ $item_type = $this->Application->GetVar('cf_type'); - if (!$item_type) { + if ( !$item_type ) { $prefix = $event->getEventParam('SourcePrefix'); $item_type = $this->Application->getUnitOption($prefix, 'ItemType'); } - if ($event->Special == 'general') { + if ( $event->Special == 'general' ) { $object->addFilter('generaltab_filter', '%1$s.OnGeneralTab = 1'); } - if ($item_type) { + if ( $item_type ) { $hidden_fields = $this->Conn->qstrArray($this->_getHiddenFields($event)); - if ($hidden_fields) { + if ( $hidden_fields ) { $object->addFilter('hidden_filter', '%1$s.FieldName NOT IN (' . implode(',', $hidden_fields) . ')'); } - $object->addFilter('itemtype_filter', '%1$s.Type = '.$item_type); + $object->addFilter('itemtype_filter', '%1$s.Type = ' . $item_type); } - if (!($this->Application->isDebugMode() && $this->Application->isAdminUser)) { + if ( !($this->Application->isDebugMode() && $this->Application->isAdminUser) ) { $object->addFilter('user_filter', '%1$s.IsSystem = 0'); } }