mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
fixed empty property warining in error_log
This commit is contained in:
parent
16e9475d0b
commit
bf9ee3a86d
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user