Commit 19cf8869 authored by Ederson Mora's avatar Ederson Mora

Update cron.inc.php

parent 7be68d5e
......@@ -264,12 +264,7 @@ class cron {
if(!array_key_exists($sField, $this->_aValidValues)) return false;
reset($this->_aValidValues[$sField]);
/*
while(($cur = each($this->_aValidValues[$sField])) !== false) {
if($bIncludeCurrent == true && $cur['value'] >= $iValue) return $cur['value'];
elseif($cur['value'] > $iValue) return $cur['value'];
}
*/
foreach($this->_aValidValues[$sField] as $key => $value) {
if($bIncludeCurrent == true && $value >= $iValue) return $value;
elseif($value > $iValue) return $value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment