Skip to content

Commit cbb2583

Browse files
author
Marius Burkard
committed
- fixed PHP warning The each() function is deprecated in cron.inc.php
1 parent d6ab12b commit cbb2583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function _getNextValue($sField, $iValue, $bIncludeCurrent = false) {
264264
if(!array_key_exists($sField, $this->_aValidValues)) return false;
265265

266266
reset($this->_aValidValues[$sField]);
267-
while(($cur = each($this->_aValidValues[$sField])) !== false) {
267+
foreach($this->_aValidValues[$sField] as $cur) {
268268
if($bIncludeCurrent == true && $cur['value'] >= $iValue) return $cur['value'];
269269
elseif($cur['value'] > $iValue) return $cur['value'];
270270
}

0 commit comments

Comments
 (0)