Fix PHP 7.2 deprecated each()

This commit is contained in:
nathangray 2018-11-29 11:00:54 -07:00
parent c83d30512e
commit 211a8e5251

View File

@ -366,7 +366,7 @@ class Asyncservice
//echo "<p>last_check_run(semaphore=".($semaphore?'True':'False').",release=".($release?'True':'False').")</p>\n"; //echo "<p>last_check_run(semaphore=".($semaphore?'True':'False').",release=".($release?'True':'False').")</p>\n";
if (($exists = $this->read('##last-check-run##'))) if (($exists = $this->read('##last-check-run##')))
{ {
list(,$last_run) = each($exists); $last_run = array_pop($exists);
} }
//echo "last_run (from db)=<pre>"; print_r($last_run); echo "</pre>\n"; //echo "last_run (from db)=<pre>"; print_r($last_run); echo "</pre>\n";