Commit 6d15c0f3 authored by Till Brehm's avatar Till Brehm

Merge branch 'patch-2' into 'master'

Update cron.inc.php

See merge request ispconfig/ispconfig3!710
parents bc3ff228 19cf8869
......@@ -264,9 +264,10 @@ 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;
}
return reset($this->_aValidValues[$sField]);
}
......
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