mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
check for extension dir before reading contents
This commit is contained in:
parent
a5c27190c1
commit
9b643fa700
|
@ -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