MDL-21558 fixed php warning in case no local plugins are installed
Thanks Stephen Bourget for a prompt report
This commit is contained in:
@@ -75,6 +75,7 @@ $table->set_attribute('id', 'localplugins');
|
||||
$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
|
||||
$table->setup();
|
||||
|
||||
$plugins = array();
|
||||
foreach (get_plugin_list('local') as $plugin => $plugindir) {
|
||||
$strpluginname = get_string('pluginname', 'local_' . $plugin);
|
||||
if ($strpluginname == '[[pluginname]]') {
|
||||
|
||||
Reference in New Issue
Block a user