summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRealRancor <Fisch.666@gmx.de>2015-07-08 10:25:39 +0200
committerRealRancor <Fisch.666@gmx.de>2015-07-08 10:25:39 +0200
commit1300204586b38ea0de37e71784950b2557a3efbc (patch)
tree9e54a47c0204d580a76b038b95b47762d3ae5006 /lib
parent2fd84607eed7281ab4d507bc4fffb4fd7c9233e0 (diff)
downloadnextcloud-server-1300204586b38ea0de37e71784950b2557a3efbc.tar.gz
nextcloud-server-1300204586b38ea0de37e71784950b2557a3efbc.zip
Add is_dir check to getAllApps() function
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app.php2
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;