From: hickert Date: Mon, 11 Jul 2005 10:37:21 +0000 (+0000) Subject: Fixed some Errors detected by eclipse. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8348c9538a1f7b9d054d35b5941f7625e7e5b965;p=gosa.git Fixed some Errors detected by eclipse. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index f586a0c66..db9cacaf2 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -302,7 +302,6 @@ function ldap_login_user ($username, $password) /* user not found */ case 0: return (NULL); - break; /* valid uniq user */ case 1: @@ -966,7 +965,7 @@ function get_printer_list($cups_server) /* CUPS is not available, try lpstat as a replacement */ } else { - unset ($ar); + $ar = false; exec("lpstat -p", $ar); foreach($ar as $val){ list($dummy, $printer, $rest)= split(' ', $val, 3);