]> source.dussan.org Git - nextcloud-server.git/commitdiff
prevent some possible warnings if there are files in /apps
authorRobin Appelman <icewind1991@gmail.com>
Fri, 17 Jun 2011 12:17:08 +0000 (14:17 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 17 Jun 2011 12:17:08 +0000 (14:17 +0200)
lib/app.php

index a56e0c2f9e66c8dde64282e87b66feea5b517e13..e373331850d6015b26968e16a8649e07d0cf6c64 100644 (file)
@@ -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