Add is_dir check to getAllApps() function
This commit is contained in:
parent
2fd84607ee
commit
1300204586
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ class OC_App {
|
|||
if (is_resource($dh)) {
|
||||
while (($file = readdir($dh)) !== false) {
|
||||
|
||||
if ($file[0] != '.' and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) {
|
||||
if ($file[0] != '.' and is_dir($apps_dir['path'] . '/' . $file) and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) {
|
||||
|
||||
$apps[] = $file;
|
||||
|
||||
|
|
Loading…
Reference in a new issue