Index: branches/5.2.x/units/polls/poll_eh.php =================================================================== diff -u -r16097 -r16515 --- branches/5.2.x/units/polls/poll_eh.php (.../poll_eh.php) (revision 16097) +++ branches/5.2.x/units/polls/poll_eh.php (.../poll_eh.php) (revision 16515) @@ -1,6 +1,6 @@ getObject(); - /* @var $object kDBList */ $object->addFilter('poll_range_filter', '(%1$s.StartDate <= ' . adodb_mktime() . ') AND (%1$s.EndDate >= ' . adodb_mktime() . ' OR EndDate IS NULL)'); $object->addFilter('poll_status', '(%1$s.Status = ' . STATUS_ACTIVE . ')'); @@ -66,8 +66,8 @@ */ function OnResetVotes($event) { + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $sql = 'DELETE FROM '.TABLE_PREFIX.'PollsStatistics WHERE '.$object->IDField.' = '.$object->GetID(); @@ -93,8 +93,8 @@ { parent::OnBeforeItemCreate($event); + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $object->SetDBField('ResourceId', $this->Application->NextResourceId()); } @@ -106,8 +106,8 @@ */ function OnMakeVote($event) { + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $poll_answer_id = $this->Application->GetVar('option_id'); @@ -161,8 +161,8 @@ { parent::OnAfterItemDelete($event); + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $sql = 'DELETE FROM ' . TABLE_PREFIX . 'PollsStatistics WHERE PollId = ' . $object->GetID();