diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-08 18:30:45 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-08 18:30:45 +0200 |
commit | 19f34bafa5aab5a17a831a8ea63d63b5359b297f (patch) | |
tree | d80e7edc1d073fc10da5f1b51c3088cce148b6f1 | |
parent | 0fe81d2f214c59dbe223e949232475fb8a6f24b9 (diff) | |
parent | 1300204586b38ea0de37e71784950b2557a3efbc (diff) | |
download | nextcloud-server-19f34bafa5aab5a17a831a8ea63d63b5359b297f.tar.gz nextcloud-server-19f34bafa5aab5a17a831a8ea63d63b5359b297f.zip |
Merge pull request #17472 from RealRancor/add_is_dir
Add is_dir check to getAllApps() function
-rw-r--r-- | lib/private/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 1e49fdc6010..83b2e8cd760 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -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; |