summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fd7f73)
raw | patch | inline | side by side (parent: 2fd7f73)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Nov 2010 12:29:35 +0000 (12:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Nov 2010 12:29:35 +0000 (12:29 +0000) |
-Only merge ACLs if they exists, prevents PHP from merging NULL
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20318 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20318 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_acl.inc | patch | blob | history |
index ab7d0e76b3703084a22439f931bee663d9a6b6e7..413bd91f58355e62b9adb3e838bba28e89a42e3e 100644 (file)
if (isset($this->parent) && $this->parent !== NULL){
$oc= array();
foreach ($this->parent->by_object as $key => $obj){
- $oc= array_merge($oc, $obj->objectclasses);
+ if(isset($obj->objectclasses) && is_array($obj->objectclasses)){
+ $oc= array_merge($oc, $obj->objectclasses);
+ }
if(isset($obj->acl_category)){
$tmp= str_replace("/","",$obj->acl_category);
$cats[$tmp] = $tmp;