File: 1033_include-class_acl.inc-Fix-indentation-whitespace-of-.patch

package info (click to toggle)
gosa 2.8~git20230203.10abe45%2Bdfsg-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,108 kB
  • sloc: php: 32,102; javascript: 10,836; pascal: 3,776; xml: 3,135; sh: 852; python: 162; makefile: 45; perl: 2
file content (25 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
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);