gradebook plugin selector

gradebook plugin selector

by Artesis TI -
Number of replies: 1

The foreach structure below is supposed to be the drop down box where u can select which plugin of the gradebook u want to use.

I've created my own plugin, but now I get a warning that there is an invalid argument in the foreach structure. Anyone knows how to solve this?

thanks in advance.

foreach ($plugin_info as $plugin_type => $plugins) {

if ($plugin_type == 'strings') {

continue; }

$first_plugin = reset($plugins);

$sectionname = $plugin_info['strings'][$plugin_type];

$section = array();

        foreach ($plugins as $plugin) { 

$link = $plugin->link->out(false);

$section[$link] = $plugin->string;

$count++;

if ($plugin_type === $active_type and $plugin->id === $active_plugin) { 

$active = $link;  }  }

        if ($section) { 

$menu[] = array($sectionname=>$section);   }  }

In reply to Artesis TI

Re: gradebook plugin selector

by Bob Puffer -

... think you're gonna need to turn debugging up and show some line numbers and more specific error messages.