From 440cb764331c2e23a9107ef0cd6d8580c74cfd10 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Sep 2006 06:11:22 +0000 Subject: [PATCH] Fixed undefined index - if strict_units is not defined in gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4803 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 9fb8b59e2..354d92816 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1251,7 +1251,7 @@ function get_printer_list($cups_server) $ldap= $config->get_ldap_link(); $ldap->cd ($config->current['BASE']); $ui= get_userinfo(); - if (preg_match('/TRUE/i', $config->current['STRICT_UNITS']) && $ui->gosaUnitTag != ""){ + if (isset($config->current['STRICT_UNITS']) && preg_match('/TRUE/i', $config->current['STRICT_UNITS']) && $ui->gosaUnitTag != ""){ $ldap->search('((objectClass=gotoPrinter)(gosaUnitTag='.$ui->gosaUnitTag.'))', array('cn')); } else { $ldap->search('(objectClass=gotoPrinter)', array('cn')); -- 2.30.2