fixed empty property warining in error_log

This commit is contained in:
Ralf Becker 2005-11-28 08:24:36 +00:00
parent 16e9475d0b
commit bf9ee3a86d

View File

@ -48,7 +48,7 @@
{ {
$parms['ismsg']=0; $parms['ismsg']=0;
$save = $this->errorstack; $save = $this->errorstack;
$this->$errorstack = array(); $this->errorstack = array();
CreateObject('phpgwapi.error',$parms); CreateObject('phpgwapi.error',$parms);
$this->commit(); $this->commit();
$this->errorstack = $save; $this->errorstack = $save;
@ -58,9 +58,7 @@
function iserror($parms) function iserror($parms)
{ {
$ecode = $parms['code']; $ecode = $parms['code'];
$errorstack = $this->errorstack; foreach($this->errorstack as $err)
reset($errorstack);
while(list(,$err)=each($errorstack))
{ {
if ($ecode == $err->code) if ($ecode == $err->code)
{ {
@ -73,9 +71,7 @@
function severity() function severity()
{ {
$max = 'D'; $max = 'D';
$errorstack = $this->errorstack; foreach($this->errorstack as $err)
reset($errorstack);
while(list(,$err)=each($errorstack))
{ {
switch($err->severity) switch($err->severity)
{ {