LSattribute :: fireEvent() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:48:11 +01:00
parent 0b442784a0
commit cec517b46d

View file

@ -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 {