From b50773ec8ecfbe04407785a4b33cb59e92b0fbe3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 Mar 2010 08:43:42 +0000 Subject: [PATCH] Updated error message in case of invalid objectType definition git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16344 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filterLDAP.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gosa-core/include/class_filterLDAP.inc b/gosa-core/include/class_filterLDAP.inc index f8d9d2cb0..ce2538b83 100644 --- a/gosa-core/include/class_filterLDAP.inc +++ b/gosa-core/include/class_filterLDAP.inc @@ -113,17 +113,12 @@ class filterLDAP { // Check entry permission $obj = $parent->headpage->getObjectType($parent->headpage->objectTypes, $attrs['objectClass']); if(isset($obj['category'])){ - $o = $obj['category']."/".$obj['class']; - - echo $o." -> ".$dn."
"; - - if(preg_match("/r/",$ui->get_permissions($dn,$o))){ $result[]= $attrs; } }else{ - echo "{$dn}
"; + trigger_error("Invalid objectType given, please check listing.xml '{$dn}'!"); } } } -- 2.30.2