cvs: pear /LiveUser_Admin Admin.php
| From: | Lukas Smith | Date: | Tue, 28 Mar 2006 10:18:34 +0000 |
| Subject: | cvs: pear /LiveUser_Admin Admin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39386@lists.php.net to get a copy of this message | ||
lsmith Tue Mar 28 10:18:34 2006 UTC
Modified files:
/pear/LiveUser_Admin Admin.php
Log:
- expanded error handling in Log instance creation
http://cvs.php.net/viewcvs.cgi/pear/LiveUser_Admin/Admin.php?r1=1.61&r2=1.62&diff_format=u
Index: pear/LiveUser_Admin/Admin.php
diff -u pear/LiveUser_Admin/Admin.php:1.61 pear/LiveUser_Admin/Admin.php:1.62
--- pear/LiveUser_Admin/Admin.php:1.61 Tue Mar 14 13:11:56 2006
+++ pear/LiveUser_Admin/Admin.php Tue Mar 28 10:18:34 2006
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: Admin.php,v 1.61 2006/03/14 13:11:56 lsmith Exp $
+ * @version CVS: $Id: Admin.php,v 1.62 2006/03/28 10:18:34 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -184,8 +184,11 @@
$this->stack = &PEAR_ErrorStack::singleton('LiveUser_Admin');
if ($debug) {
- $this->log =& LiveUser::PEARLogFactory($debug);
- $this->stack->setLogger($this->log);
+ $log =& LiveUser::PEARLogFactory($debug);
+ if ($log) {
+ $this->log =& $log;
+ $this->stack->setLogger($this->log);
+ }
}
$this->stack->setErrorMessageTemplate($this->_errorMessages);