mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
check for extension dir before reading contents
This commit is contained in:
parent
b25184af17
commit
3fc72a3fff
|
@ -76,6 +76,7 @@ class SeedDMS_Extension_Mgr {
|
|||
|
||||
function getExtensions() { /* {{{ */
|
||||
$extensions = array();
|
||||
if(file_exists($this->extdir)) {
|
||||
$handle = opendir($this->extdir);
|
||||
while ($entry = readdir($handle) ) {
|
||||
if ($entry == ".." || $entry == ".")
|
||||
|
@ -86,6 +87,7 @@ class SeedDMS_Extension_Mgr {
|
|||
closedir($handle);
|
||||
|
||||
asort($extensions);
|
||||
}
|
||||
return $extensions;
|
||||
} /* }}} */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user