From: Robin Appelman Date: Fri, 17 Jun 2011 12:17:08 +0000 (+0200) Subject: prevent some possible warnings if there are files in /apps X-Git-Tag: v3.0~267^2~521 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=561c3a15f0d3821ffbaef84052c77182914b2d12;p=nextcloud-server.git prevent some possible warnings if there are files in /apps --- diff --git a/lib/app.php b/lib/app.php index a56e0c2f9e6..e373331850d 100644 --- a/lib/app.php +++ b/lib/app.php @@ -59,7 +59,7 @@ class OC_APP{ // The rest comes here $dir = opendir( "$SERVERROOT/apps" ); while( false !== ( $filename = readdir( $dir ))){ - if( substr( $filename, 0, 1 ) != '.' ){ + if( substr( $filename, 0, 1 ) != '.' and is_dir("$SERVERROOT/apps/$filename") ){ if( file_exists( "$SERVERROOT/apps/$filename/appinfo/app.php" )){ if(OC_APPCONFIG::getValue($filename,'installed_version',0)==0){ //check if the plugin is fully installed //install the database