mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-21558 fixed php warning in case no local plugins are installed
Thanks Stephen Bourget for a prompt report
This commit is contained in:
parent
8dd14645da
commit
695a6fb80a
1 changed files with 1 additions and 0 deletions
|
@ -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]]') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue