summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-05 11:58:57 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-09-05 11:58:57 +0200
commitc01675de5d6650c7b1cd0571d8c313f21d13c33c (patch)
treea1c3672af78c6e84d4e9fedab9cff0ef38620f2f /apps/files_external
parentec3639dc7a28348b136d2008e692cffe8c3753ad (diff)
downloadnextcloud-server-c01675de5d6650c7b1cd0571d8c313f21d13c33c.tar.gz
nextcloud-server-c01675de5d6650c7b1cd0571d8c313f21d13c33c.zip
more is_resource checks before readdir
Diffstat (limited to 'apps/files_external')
-rwxr-xr-xapps/files_external/lib/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 1935740cd2e..659959e662e 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -378,7 +378,7 @@ class OC_Mount_Config {
}
$result = array();
$handle = opendir($path);
- if ( ! $handle) {
+ if(!is_resource($handle)) {
return array();
}
while (false !== ($file = readdir($handle))) {