Index: branches/5.2.x/units/topics/topics_event_handler.php =================================================================== diff -u -r14848 -r14985 --- branches/5.2.x/units/topics/topics_event_handler.php (.../topics_event_handler.php) (revision 14848) +++ branches/5.2.x/units/topics/topics_event_handler.php (.../topics_event_handler.php) (revision 14985) @@ -1,6 +1,6 @@ Name == 'OnTopicLockToggle') { + if ( $event->Name == 'OnTopicLockToggle' ) { $object =& $event->getObject(); /* @var $object kCatDBItem */ - if (!$object->isLoaded()) { + if ( !$object->isLoaded() ) { $event->status = kEvent::erPERM_FAIL; return false; } $category_id = $object->GetDBField('CategoryId'); $perm_status = $this->Application->CheckPermission('TOPIC.LOCK', 0, $category_id); - if (!$perm_status) { + if ( !$perm_status ) { $event->status = kEvent::erPERM_FAIL; }