From 37641869264025f1a977b56703fb3ec1fbe1c7d8 Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 14 Apr 2008 10:10:05 +0000 Subject: [PATCH] Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10405 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/update-gosa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2