From 880c7c3b270db8abe303258d4fa1a7779d4e7f80 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Jul 2006 08:43:06 +0000 Subject: [PATCH] Fixed undefined index when trying to get printer list git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4015 594d385d-05f5-0310-b6e9-bd551577e9d8 --- Changelog | 1 + include/functions.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 1994463e0..28bc23708 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ GOsa2 changelog =============== * gosa 2.5.3 + - Fixed get_printer_list undefined index warnings while editing a user. - Fixed ogroup non-static method error - Fixed user membership for gotoPrinter, if membership was edited via user environemnt, some numeric values were stored too diff --git a/include/functions.inc b/include/functions.inc index 3116c391c..d8f0cd4ac 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