Code

improved parent check
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Jul 2006 11:36:45 +0000 (11:36 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Jul 2006 11:36:45 +0000 (11:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4257 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_acl.inc

index ee441d6812fb32909e6ed317d8f666daed53d5b2..7ea80a7448be39cfe98d780dc147cbaf6612677b 100644 (file)
@@ -87,7 +87,7 @@ class acl extends plugin
     /* Objects */
     $tmp= get_global('plist');
     $plist= $tmp->info;
-    if (isset($this->parent)){
+    if (isset($this->parent) && $this->parent != NULL){
       $oc= array();
       foreach ($this->parent->by_object as $key => $obj){
         $oc= array_merge($oc, $obj->objectclasses);