Code

fixed permission check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Apr 2006 11:29:29 +0000 (11:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Apr 2006 11:29:29 +0000 (11:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2994 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ppdManager.inc

index 5a8c5b678966e5a12617ed0e256a23d50cac6fee..c533fb800586e3ee19838a6ea736253aa9a1c3aa 100644 (file)
@@ -138,8 +138,6 @@ class ppdManager
                        print_red(sprintf(_("Specified ppd file '%s' can't be opened for reading."),$ppdFile));
                }elseif(!is_writeable(preg_replace("#(^.*/).*$#","\\1",$ppdFile.".tmp"))){
                        print_red(sprintf(_("The required tmp file file '%s' can't be opened for writing."),$ppdFile.".tmp"));
-               }elseif(!is_writeable($ppdFile.".tmp")){
-                       print_red(sprintf(_("The required tmp file file '%s' can't be opened for writing."),$ppdFile.".tmp"));
                }else{
                        foreach ($properties as $name => $section){
                                foreach ($section as $attribute => $value){