summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-17 14:17:08 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-17 14:17:08 +0200
commit561c3a15f0d3821ffbaef84052c77182914b2d12 (patch)
tree7a2cfa47689b9d75a25055f0fd069caef37d4661
parent07b72ca53459bcd150a21e2133a7d5936d92cbec (diff)
downloadnextcloud-server-561c3a15f0d3821ffbaef84052c77182914b2d12.tar.gz
nextcloud-server-561c3a15f0d3821ffbaef84052c77182914b2d12.zip
prevent some possible warnings if there are files in /apps
-rw-r--r--lib/app.php2
1 files changed, 1 insertions, 1 deletions
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