From 86c3761615d56517f8bea867bdaf0ca59c386329 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Wed, 19 Sep 2012 19:26:57 +0000 Subject: [PATCH] Catch unreadable app folder error --- lib/app.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) ) {