Code

Added checks.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 10:10:05 +0000 (10:10 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 10:10:05 +0000 (10:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10405 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index e10df6e50823214fd63e726dfd38633f6b7eefa5..def413976a75c5dd2cca0c3457eaede9f750e475 100755 (executable)
@@ -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);
        }