From cec517b46da129742b3b1924402a65cfc22b1256 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 16 Nov 2010 19:48:11 +0100 Subject: [PATCH] LSattribute :: fireEvent() : Fixed notice PHP --- public_html/includes/class/class.LSattribute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSattribute.php b/public_html/includes/class/class.LSattribute.php index 75a64a11..850350d7 100644 --- a/public_html/includes/class/class.LSattribute.php +++ b/public_html/includes/class/class.LSattribute.php @@ -646,7 +646,7 @@ class LSattribute { } } - 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'])) { @@ -688,7 +688,7 @@ class LSattribute { } } - 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 {