mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Catch unreadable app folder error
This commit is contained in:
parent
fb3724ba64
commit
86c3761615
1 changed files with 4 additions and 1 deletions
|
|
@ -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 ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue