Code

Updated error message in case of invalid objectType definition
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Mar 2010 08:43:42 +0000 (08:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Mar 2010 08:43:42 +0000 (08:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16344 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filterLDAP.inc

index f8d9d2cb0335df52734fca9adf3d6a976b9b7c98..ce2538b83e73a48c2f5caee91aae76c1c342cac2 100644 (file)
@@ -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."<br>";
-
-      
             if(preg_match("/r/",$ui->get_permissions($dn,$o))){
               $result[]= $attrs;
             }
           }else{
-            echo "<b>{$dn}</b><br>";
+            trigger_error("Invalid objectType given, please check listing.xml '{$dn}'!");
           }
         }
       }