From: hickert Date: Fri, 2 Sep 2005 06:33:13 +0000 (+0000) Subject: Fixed undefined index in printer selection dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6600496ba960a305769620da944d5f5ba450b3c2;p=gosa.git Fixed undefined index in printer selection dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1296 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printerPPDSelectionDialog.inc b/plugins/admin/systems/class_printerPPDSelectionDialog.inc index b10357b9d..9bc12f29f 100644 --- a/plugins/admin/systems/class_printerPPDSelectionDialog.inc +++ b/plugins/admin/systems/class_printerPPDSelectionDialog.inc @@ -30,8 +30,10 @@ class printerPPDSelectionDialog extends plugin */ if(isset($ppd)){ $tmp2 = split("\n",$ppd['ppd']); - $this->currentPos = $tmp2[0]; - $this->currentSel = preg_replace("/^ -/","",$tmp2[1]); + if(count($tmp2)==2){ + $this->currentPos = $tmp2[0]; + $this->currentSel = preg_replace("/^ -/","",$tmp2[1]); + } } /* Order the manufacturers index */