Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In Advanced theme, voting as in Polls (part of In-Bulletin part (Pollsmodule) not working.

Debuge shows problem there:

function OnMakeVote($event)

{

...

Debugger shows following error in the code below:

The getObject parameter must be Array, not string.

Notice: Argument 1 passed to kEvent::getObject() must be an array, string given, called in /home/sites/dev/web/SVN/5.2.x.../modules/in-bulletin/units/polls/poll_eh.php on line 109 and defined in /home/sites/dev/web/SVN/5.2.x.../core/kernel/utility/event.php on line 272 

Code Block
languagephp
firstline107
linenumberstrue
function OnMakeVote($event)
{
	$object = $event->getObject($this->Application->GetVar('poll_id'));