Index: branches/5.2.x/core/units/reviews/reviews_tag_processor.php =================================================================== diff -u -N -r14783 -r14955 --- branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 14783) +++ branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 14955) @@ -1,6 +1,6 @@ Application->recallObject($this->getPrefixSpecial(), $this->Prefix, $params); - if (method_exists($object, 'GetErrorMsg')) { - return parent::HasError($params); - } - else { - return 0; - } + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + return method_exists($object, 'GetErrorMsg') ? parent::HasError($params) : 0; } /** Index: branches/5.2.x/core/units/users/users_event_handler.php =================================================================== diff -u -N -r14951 -r14955 --- branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 14951) +++ branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 14955) @@ -1,6 +1,6 @@ Application->GetVar($event->Prefix . '_label') ) { $this->returnToOriginalTemplate($event); Index: branches/5.2.x/core/kernel/db/cat_event_handler.php =================================================================== diff -u -N -r14898 -r14955 --- branches/5.2.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 14898) +++ branches/5.2.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 14955) @@ -1,6 +1,6 @@ Application->getUnitOption($event->Prefix, 'UsePendingEditing'); if ($this->Application->isAdminUser || !$use_pending) { Index: branches/5.2.x/core/units/config_search/config_search_event_handler.php =================================================================== diff -u -N -r14628 -r14955 --- branches/5.2.x/core/units/config_search/config_search_event_handler.php (.../config_search_event_handler.php) (revision 14628) +++ branches/5.2.x/core/units/config_search/config_search_event_handler.php (.../config_search_event_handler.php) (revision 14955) @@ -1,6 +1,6 @@ Application->findModule('Name', $module, 'Var'); $section = $this->Application->getUnitOption($main_prefix.'.search', 'PermSection'); $event->setEventParam('PermSection', $section); - + return parent::CheckPermission($event); } @@ -45,7 +45,7 @@ { $object =& $event->getObject(); /* @var $object kDBList */ - + // show only items that belong to selected module $module = $this->Application->GetVar('module'); $object->addFilter('module_filter', '%1$s.ModuleName = '.$this->Conn->qstr($module)); @@ -55,11 +55,13 @@ } /** - * Enter description here... + * Updates kDBItem * * @param kEvent $event + * @return void + * @access protected */ - function OnUpdate(&$event) + protected function OnUpdate(kEvent &$event) { if ($this->Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1)) { $event->status = kEvent::erFAIL; @@ -90,7 +92,7 @@ function OnCancel(&$event) { parent::OnCancel($event); - + $event->SetRedirectParam('opener', 's'); } Index: branches/5.2.x/core/units/forms/form_submissions/form_submissions_eh.php =================================================================== diff -u -N -r14614 -r14955 --- branches/5.2.x/core/units/forms/form_submissions/form_submissions_eh.php (.../form_submissions_eh.php) (revision 14614) +++ branches/5.2.x/core/units/forms/form_submissions/form_submissions_eh.php (.../form_submissions_eh.php) (revision 14955) @@ -1,6 +1,6 @@ Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1) ) { $event->status = kEvent::erFAIL; @@ -2309,7 +2310,7 @@ } /** - * Occurse before deleting item, id of item beeing + * Occurs before deleting item, id of item being * deleted is stored as 'id' event param * * @param kEvent $event Index: branches/5.2.x/core/units/user_profile/user_profile_eh.php =================================================================== diff -u -N -r14675 -r14955 --- branches/5.2.x/core/units/user_profile/user_profile_eh.php (.../user_profile_eh.php) (revision 14675) +++ branches/5.2.x/core/units/user_profile/user_profile_eh.php (.../user_profile_eh.php) (revision 14955) @@ -1,6 +1,6 @@ Application->GetVar($event->getPrefixSpecial(true)); list ($user_id, $field_values) = each($items_info); Index: branches/5.2.x/core/units/configuration/configuration_event_handler.php =================================================================== diff -u -N -r14941 -r14955 --- branches/5.2.x/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 14941) +++ branches/5.2.x/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 14955) @@ -1,6 +1,6 @@ Application->CheckPermission('SYSTEM_ACCESS.READONLY', 1) ) { $event->status = kEvent::erFAIL;