From: janw Date: Mon, 14 Apr 2008 10:10:05 +0000 (+0000) Subject: Added checks. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=37641869264025f1a977b56703fb3ec1fbe1c7d8;p=gosa.git Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10405 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index e10df6e50..def413976 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -236,7 +236,7 @@ function rescan_guide() $master_guide_content= preg_replace("/[ \t][ \t]*/", " ", $master_guide_content); - if(is_writable($master_guide)) { + if((file_exists($master_guide) && is_writable($master_guide)) || is_writable('doc')) { file_put_contents($master_guide, $master_guide_content); }