1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From d9fe3af9f503ba567dfd14d927fac909a67e8847 Mon Sep 17 00:00:00 2001
From: root <root@postoffice.intern>
Date: Wed, 23 Aug 2023 16:48:19 +0200
Subject: [PATCH] include/class_acl.inc: Fix indentation + whitespace of
execute() block.
+ Fix $this->$value -> $this->value (Note: the extra $!)
+ Fix case where $oc would not be initialized.
---
include/class_acl.inc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
@@ -161,9 +161,9 @@
/* Objects */
$tmp= session::global_get('plist');
$plist= $tmp->info;
+ $oc = array();
$cats = array();
if (isset($this->parent) && $this->parent !== NULL){
- $oc= array();
foreach ($this->parent->by_object as $key => $obj){
if(isset($obj->objectclasses) && is_array($obj->objectclasses)){
$oc= array_merge($oc, $obj->objectclasses);
|