Commit cbb25838 authored by Marius Burkard's avatar Marius Burkard

- fixed PHP warning The each() function is deprecated in cron.inc.php

parent d6ab12b7
......@@ -264,7 +264,7 @@ class cron {
if(!array_key_exists($sField, $this->_aValidValues)) return false;
reset($this->_aValidValues[$sField]);
while(($cur = each($this->_aValidValues[$sField])) !== false) {
foreach($this->_aValidValues[$sField] as $cur) {
if($bIncludeCurrent == true && $cur['value'] >= $iValue) return $cur['value'];
elseif($cur['value'] > $iValue) return $cur['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