File: 1048_fix-undefined-variable.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 (13 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Fix undefined variable $acl_mode when using classic theme.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

--- a/include/class_management.inc
+++ b/include/class_management.inc
@@ -316,6 +316,7 @@
             return("");
         }
 
+        $acl_mode = "";
         if ($theme == "default") {
             $acl_mode = preg_match("/^[r]$/", $this->ui->get_category_permissions($this->ui->dn,"users"));
         }