From 6600496ba960a305769620da944d5f5ba450b3c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Sep 2005 06:33:13 +0000 Subject: [PATCH] Fixed undefined index in printer selection dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1296 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDSelectionDialog.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.30.2