mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 06:05:31 +02:00
Avoid one notice if the dataroot/lang dir doesn't exist.
This commit is contained in:
parent
424cdc2613
commit
2412b5ab1b
@ -5439,7 +5439,7 @@ function get_list_of_plugins($plugin='mod', $exclude='', $basedir='') {
|
||||
} else {
|
||||
$basedir = $basedir .'/'. $plugin;
|
||||
}
|
||||
if (filetype($basedir) == 'dir') {
|
||||
if (file_exists($basedir) && filetype($basedir) == 'dir') {
|
||||
$dirhandle = opendir($basedir);
|
||||
while (false !== ($dir = readdir($dirhandle))) {
|
||||
$firstchar = substr($dir, 0, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user