cvs: pear /LiveUser LiveUser.php

From: Date: Sun, 12 Dec 2004 21:46:34 +0000
Subject: cvs: pear /LiveUser LiveUser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27263@lists.php.net to get a copy of this message
arnaud Sun Dec 12 16:46:34 2004 EDT Modified files: /pear/LiveUser LiveUser.php Log: a wrong test prevented the observers to be notified if passed as an object http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.19&r2=1.20&ty=u Index: pear/LiveUser/LiveUser.php diff -u pear/LiveUser/LiveUser.php:1.19 pear/LiveUser/LiveUser.php:1.20 --- pear/LiveUser/LiveUser.php:1.19 Sat Dec 11 16:45:47 2004 +++ pear/LiveUser/LiveUser.php Sun Dec 12 16:46:33 2004 @@ -147,7 +147,7 @@ * @author Lukas Smith <smith@backendmedia.com> * @author Pierre-Alain Joye <pajoye@php.net> * @author Arnaud Limbourg <arnaud@php.net> - * @version $Id: LiveUser.php,v 1.19 2004/12/11 21:45:47 lsmith Exp $ + * @version $Id: LiveUser.php,v 1.20 2004/12/12 21:46:33 arnaud Exp $ * @package LiveUser */ class LiveUser @@ -1496,7 +1496,7 @@ $num = count($this->_observers[$event]); for ($i = 0; $i < $num; $i++) { - if (!is_callable($this->_observers[$event][$i])) { + if (is_callable($this->_observers[$event][$i])) { call_user_func($this->_observers[$event][$i], &$this, $params); // no error push here, because it should be pushed by the handler $success = false;

« previous php.pear.cvs (#27263) next »