From 4832ead067c32d46c8a6a97e41f054264c8379b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrija=20Vu=C4=8Dini=C4=87?= Date: Mon, 16 Dec 2024 20:14:15 +0100 Subject: [PATCH] Fix warning in main.php for PHP 8+ (#1014) * Fix PHP Warning in main.php for PHP 8+ ``` PHP Warning: Undefined array key "REMOTE_USER" in /usr/local/nagios/share/main.php on line 29 ``` * Update html/main.php props @tsadpbb Co-authored-by: tsadpbb <90269351+tsadpbb@users.noreply.github.com> * Update main.php Missed a parenthesis. :) --------- Co-authored-by: tsadpbb <90269351+tsadpbb@users.noreply.github.com> --- html/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/main.php b/html/main.php index df3df3f77..45aff2536 100644 --- a/html/main.php +++ b/html/main.php @@ -26,7 +26,7 @@ "Click here to watch the entire Nagios Core 4 Tour!"; $(document).ready(function() { - var user = ""; + var user = ""; vBoxId += ";" + user;