From bf9ee3a86ddcca9fbb4ca54b7c3c72ffc8d8843b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 28 Nov 2005 08:24:36 +0000 Subject: [PATCH] fixed empty property warining in error_log --- phpgwapi/inc/class.errorlog.inc.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/phpgwapi/inc/class.errorlog.inc.php b/phpgwapi/inc/class.errorlog.inc.php index 0c5424401d..d34278c271 100644 --- a/phpgwapi/inc/class.errorlog.inc.php +++ b/phpgwapi/inc/class.errorlog.inc.php @@ -48,7 +48,7 @@ { $parms['ismsg']=0; $save = $this->errorstack; - $this->$errorstack = array(); + $this->errorstack = array(); CreateObject('phpgwapi.error',$parms); $this->commit(); $this->errorstack = $save; @@ -58,9 +58,7 @@ function iserror($parms) { $ecode = $parms['code']; - $errorstack = $this->errorstack; - reset($errorstack); - while(list(,$err)=each($errorstack)) + foreach($this->errorstack as $err) { if ($ecode == $err->code) { @@ -73,9 +71,7 @@ function severity() { $max = 'D'; - $errorstack = $this->errorstack; - reset($errorstack); - while(list(,$err)=each($errorstack)) + foreach($this->errorstack as $err) { switch($err->severity) {