Code

Fixed undefined index - if strict_units is not defined in gosa.conf
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 06:11:22 +0000 (06:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Sep 2006 06:11:22 +0000 (06:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4803 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 9fb8b59e2be85309c5d6ac3d8d77030d28fcf9aa..354d92816acfbbdbdedb88b5b2ed30db3c58bf2e 100644 (file)
@@ -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'));