From ae440e33ff13896a6e847c6597dd8a72a1af0957 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 18 Sep 2006 07:26:31 +0000 Subject: [PATCH] replaced count() with empty(), it is a string. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4704 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 9cccd381a..cc57c88fa 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -712,12 +712,13 @@ class printgeneric extends plugin } /* Only save ppd path, if the path is not empty (no ppd selected )*/ - if(count($this->gotoPrinterPPD)) { + if(!empty($this->gotoPrinterPPD)) { $this->attrs['gotoPrinterPPD'] = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); }else{ $this->attrs['gotoPrinterPPD'] = array(); } + /* Append printer user */ $this->attrs['gotoUserPrinter']=array(); -- 2.30.2