Index: branches/5.2.x/units/poll_comments/poll_comment_eh.php =================================================================== diff -u -N -r14676 -r14848 --- branches/5.2.x/units/poll_comments/poll_comment_eh.php (.../poll_comment_eh.php) (revision 14676) +++ branches/5.2.x/units/poll_comments/poll_comment_eh.php (.../poll_comment_eh.php) (revision 14848) @@ -1,6 +1,6 @@ permMapping = array_merge($this->permMapping, $permissions); } - function OnAfterConfigRead(&$event) + /** + * Occurs, when config was parsed, allows to change config data dynamically + * + * @param kEvent $event + * @return void + * @access protected + */ + protected function OnAfterConfigRead(kEvent &$event) { + parent::OnAfterConfigRead($event); + if ( $this->Application->RecallVar('user_id') == USER_GUEST ) { // make Guest Name and Email required for guests $fields = $this->Application->getUnitOption($event->Prefix, 'Fields');