From 211a8e525134899c4598b71374e0ce4f8a1fba13 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 29 Nov 2018 11:00:54 -0700 Subject: [PATCH] Fix PHP 7.2 deprecated each() --- api/src/Asyncservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index 67b95eaa2a..ba1ce83852 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -366,7 +366,7 @@ class Asyncservice //echo "

last_check_run(semaphore=".($semaphore?'True':'False').",release=".($release?'True':'False').")

\n"; if (($exists = $this->read('##last-check-run##'))) { - list(,$last_run) = each($exists); + $last_run = array_pop($exists); } //echo "last_run (from db)=
"; print_r($last_run); echo "
\n";