From e7f04ec05e419785eeabdfafdaabf3774d4af849 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 27 Mar 2013 15:28:07 +0000 Subject: [PATCH] Bug fix: removed a PHP Notice: Undefined variable: aList in /var/www/html/core/ormstopwatch.class.inc.php on line 456 (same fix as revision 2609 in the trunk) SVN:2.0[2657] --- core/ormstopwatch.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ormstopwatch.class.inc.php b/core/ormstopwatch.class.inc.php index 5370898f3..edbe1f5d5 100644 --- a/core/ormstopwatch.class.inc.php +++ b/core/ormstopwatch.class.inc.php @@ -389,6 +389,7 @@ class CheckStopWatchThresholds implements iBackgroundProcess { foreach (MetaModel::GetClasses() as $sClass) { + $aList = array(); foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) { if ($oAttDef instanceof AttributeStopWatch) @@ -400,7 +401,6 @@ class CheckStopWatchThresholds implements iBackgroundProcess $sExpression = "SELECT $sClass WHERE {$sAttCode}_laststart AND {$sAttCode}_{$iThreshold}_triggered = 0 AND {$sAttCode}_{$iThreshold}_deadline < NOW()"; //echo $sExpression."
\n"; $oFilter = DBObjectSearch::FromOQL($sExpression); - $aList = array(); $oSet = new DBObjectSet($oFilter); while ((time() < $iTimeLimit) && ($oObj = $oSet->Fetch())) {