From 813b2222f7425277875716feb7c9d0540e50ceef Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 25 Nov 2010 12:25:05 +0100 Subject: [PATCH] LSldapObject :: fireEvent() : Fixed notice PHP --- public_html/includes/class/class.LSldapObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php index 75520de6..1d223fdf 100644 --- a/public_html/includes/class/class.LSldapObject.php +++ b/public_html/includes/class/class.LSldapObject.php @@ -1842,7 +1842,7 @@ class LSldapObject { } // Binding via addEvent - if (is_array($this -> _events[$event])) { + if (isset($this -> _events[$event]) && is_array($this -> _events[$event])) { foreach ($this -> _events[$event] as $e) { if ($e['class']) { if (class_exists($e['class'])) { @@ -1885,7 +1885,7 @@ class LSldapObject { } // Binding via addObjectEvent - if (is_array($this -> _objectEvents[$event])) { + if (isset($this -> _objectEvents[$event]) && is_array($this -> _objectEvents[$event])) { foreach ($this -> _objectEvents[$event] as $e) { if (method_exists($e['obj'],$e['meth'])) { try {