check for plugins directory existence before scanning it
This commit is contained in:
parent
d4c094498d
commit
897111feff
@ -269,6 +269,9 @@ class PluginManager {
|
||||
* @param string $directory
|
||||
*/
|
||||
public function loadPluginFiles($directory = '') {
|
||||
if (!is_readable($directory) || !is_dir($directory)) {
|
||||
return;
|
||||
}
|
||||
$pluginFiles = scandir($directory);
|
||||
foreach ($pluginFiles as $pluginFile) {
|
||||
if (stripos($pluginFile, '.') === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user