Catch unreadable app folder error

This commit is contained in:
Brice Maron 2012-09-19 19:26:57 +00:00
parent fb3724ba64
commit 86c3761615
1 changed files with 4 additions and 1 deletions

View File

@ -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 ) ) {