From: hickert Date: Thu, 1 Sep 2005 14:04:20 +0000 (+0000) Subject: Fixed undefined idex error, if printer has no description X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9749d9f7c89fee024a44b4abbe4ebbe0bb38e708;p=gosa.git Fixed undefined idex error, if printer has no description git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1290 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_selectPrinterDialog.inc b/plugins/personal/environment/class_selectPrinterDialog.inc index 7910d2407..76558dcea 100644 --- a/plugins/personal/environment/class_selectPrinterDialog.inc +++ b/plugins/personal/environment/class_selectPrinterDialog.inc @@ -85,7 +85,11 @@ class selectPrinterDialog extends plugin if($detailed ==true){ $a_return[$printer['cn'][0]] = $printer; }else{ - $a_return[$printer['cn'][0]] = $printer['cn'][0]." - ".$printer['description'][0]; + if(isset($printer['description'][0])){ + $a_return[$printer['cn'][0]] = $printer['cn'][0]." - ".$printer['description'][0]; + }else{ + $a_return[$printer['cn'][0]] = $printer['cn'][0]; + } } } return($a_return);