MDL-21558 fixed php warning in case no local plugins are installed

Thanks Stephen Bourget for a prompt report
This commit is contained in:
David Mudrak 2010-02-09 17:27:39 +00:00
parent 8dd14645da
commit 695a6fb80a

View file

@ -75,6 +75,7 @@ $table->set_attribute('id', 'localplugins');
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide'); $table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
$table->setup(); $table->setup();
$plugins = array();
foreach (get_plugin_list('local') as $plugin => $plugindir) { foreach (get_plugin_list('local') as $plugin => $plugindir) {
$strpluginname = get_string('pluginname', 'local_' . $plugin); $strpluginname = get_string('pluginname', 'local_' . $plugin);
if ($strpluginname == '[[pluginname]]') { if ($strpluginname == '[[pluginname]]') {