summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 025278a)
raw | patch | inline | side by side (parent: 025278a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Sep 2006 06:11:22 +0000 (06:11 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 9fb8b59e2be85309c5d6ac3d8d77030d28fcf9aa..354d92816acfbbdbdedb88b5b2ed30db3c58bf2e 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
$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'));