File: 1026_dont-access-static-property-non-static.patch

package info (click to toggle)
gosa 2.8~git20230203.10abe45%2Bdfsg-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,364 kB
  • sloc: php: 32,085; javascript: 10,836; pascal: 3,775; xml: 3,135; sh: 852; python: 162; makefile: 45; perl: 2
file content (11 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/include/class_config.inc
+++ b/include/class_config.inc
@@ -359,7 +359,7 @@
      */
     function get_ldap_link($sizelimit= FALSE)
     {
-        if($this->ldap === NULL || !is_resource($this->ldap->cid)){
+        if($this->ldap === NULL || !is_resource($this->ldap::$cid)){
 
             /* Build new connection */
             $this->ldap= ldap_init ($this->current['SERVER'], $this->current['BASE'],