From: hickert Date: Thu, 28 Sep 2006 06:11:22 +0000 (+0000) Subject: Fixed undefined index - if strict_units is not defined in gosa.conf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=440cb764331c2e23a9107ef0cd6d8580c74cfd10;p=gosa.git 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 --- 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'));