diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-05 11:58:57 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-05 11:58:57 +0200 |
commit | c01675de5d6650c7b1cd0571d8c313f21d13c33c (patch) | |
tree | a1c3672af78c6e84d4e9fedab9cff0ef38620f2f /apps/files_external | |
parent | ec3639dc7a28348b136d2008e692cffe8c3753ad (diff) | |
download | nextcloud-server-c01675de5d6650c7b1cd0571d8c313f21d13c33c.tar.gz nextcloud-server-c01675de5d6650c7b1cd0571d8c313f21d13c33c.zip |
more is_resource checks before readdir
Diffstat (limited to 'apps/files_external')
-rwxr-xr-x | apps/files_external/lib/config.php | 2 |
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))) { |