From 2c56f6fd80c959565b64d3c9fea495c324745f53 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 25 Nov 2024 13:59:29 -0800 Subject: [PATCH] Make sure to get most up to date version Signed-off-by: Matt Friedman --- includes/qi_version_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/qi_version_helper.php b/includes/qi_version_helper.php index 13709d51..13fad70a 100644 --- a/includes/qi_version_helper.php +++ b/includes/qi_version_helper.php @@ -154,7 +154,7 @@ public function get_update() try { $updates = $this->get_suggested_updates(); - return array_shift($updates); + return array_pop($updates); } catch (RuntimeException $e) {