]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont complain about non existing config files
authorRobin Appelman <icewind@owncloud.com>
Mon, 16 Jan 2012 19:17:45 +0000 (20:17 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 16 Jan 2012 19:17:45 +0000 (20:17 +0100)
lib/util.php

index 20197d65b001d1e46cdd73bc44d600a2c2bb5ec4..09513d32328212ed94e824335ede191d37f094ba 100644 (file)
@@ -226,7 +226,7 @@ class OC_Util {
                        $errors[]=array('error'=>'PHP module ctype is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
                }
 
-               if(!is_writeable(OC::$SERVERROOT."/config/config.php")){
+               if(file_exists(OC::$SERVERROOT."/config/config.php") and !is_writeable(OC::$SERVERROOT."/config/config.php")){
                        $errors[]=array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by giving the webserver use write access to the config directory in owncloud");
                }