From 2b5ce0af8c2b2e8f3bcf2c78c3d667101ae3e818 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 4 Mar 2024 15:57:50 +0100
Subject: [PATCH] act_build: replace array_key_exists with isset()

---
 public_html/deployment/pages/act_build.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/pages/act_build.php b/public_html/deployment/pages/act_build.php
index e22bc21c..6d03699e 100644
--- a/public_html/deployment/pages/act_build.php
+++ b/public_html/deployment/pages/act_build.php
@@ -46,7 +46,7 @@ if (!array_key_exists("confirm", $aParams)) {
 
     $sRevison = false;
     $aRepodata = $oPrj->getRepoRevision(true);
-    if (array_key_exists("revision", $aRepodata)) {
+    if (isset($aRepodata["revision"])) {
         $sRevison = $aRepodata["revision"];
         if (
                 array_key_exists("revision", $aPhaseData2["onhold"]) && $aPhaseData2["onhold"]["revision"] == $sRevison
-- 
GitLab