Index: branches/5.2.x/core/units/images/image_event_handler.php =================================================================== diff -u -N -r15012 -r15065 --- branches/5.2.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15012) +++ branches/5.2.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15065) @@ -1,6 +1,6 @@ getObject(); /* @var $object kDBItem */ @@ -117,7 +117,7 @@ $event->setEventParam('ids', $ids); } - switch ( $type ) { + switch ($type) { case 'before' : // empty unused fields $object->SetDBField($object->GetDBField('LocalImage') ? 'Url' : 'LocalPath', ''); @@ -265,7 +265,7 @@ * @return void * @access protected */ - protected function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(kEvent &$event) { parent::OnBeforeItemUpdate($event); @@ -279,7 +279,7 @@ * @return void * @access protected */ - protected function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(kEvent &$event) { parent::OnAfterItemCreate($event);