From 39b455baf2ded7e9f64e2273c1ca455c0da77d8c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Jul 2006 08:40:58 +0000 Subject: [PATCH] Fixed undefined index when trying to get printer list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4014 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.inc b/include/functions.inc index 36c0ddf9e..46a0e53e9 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1194,7 +1194,7 @@ function get_printer_list($cups_server) $ar = false; exec("lpstat -p", $ar); foreach($ar as $val){ - list($dummy, $printer, $rest)= split(' ', $val, 3); + @list($dummy, $printer, $rest)= split(' ', $val, 3); if (preg_match('/^[^@]+$/', $printer)){ $res[$printer]= "$printer"; } -- 2.30.2