summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-09-19 19:26:57 +0000
committerBrice Maron <brice@bmaron.net>2012-09-19 19:26:57 +0000
commit86c3761615d56517f8bea867bdaf0ca59c386329 (patch)
tree629829981a3d925f569398591b8af66728250ec9 /lib/app.php
parentfb3724ba64b717fb03c6d7112dc04d6fdc2f35e0 (diff)
downloadnextcloud-server-86c3761615d56517f8bea867bdaf0ca59c386329.tar.gz
nextcloud-server-86c3761615d56517f8bea867bdaf0ca59c386329.zip
Catch unreadable app folder error
Diffstat (limited to 'lib/app.php')
-rwxr-xr-xlib/app.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index 38ba4bcdc88..8c3016d7800 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -532,7 +532,10 @@ class OC_App{
$apps=array();
foreach ( OC::$APPSROOTS as $apps_dir ) {
-
+ if(! is_readable($apps_dir['path'])) {
+ OC_Log::write('core', 'unable to read app folder : ' .$apps_dir['path'] , OC_Log::WARN);
+ continue;
+ }
$dh = opendir( $apps_dir['path'] );
while( $file = readdir( $dh ) ) {