From f8086328bc40c23fa7fa36505386f550640513de Mon Sep 17 00:00:00 2001 From: Nyiro Zoltan-Csaba Date: Thu, 6 Oct 2022 19:59:05 +0300 Subject: [PATCH] Fix "Undefined variable $serverLabel" warning in php 8+ In php 8 or newer a number of notices have been converted into warnings. See for more details: https://www.php.net/manual/en/migration80.incompatible.php On the landing page the following warning is thrown into the title: "Warning: Undefined variable $serverLabel in ib/tpl/main.php on line 17" --- lib/tpl/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tpl/main.php b/lib/tpl/main.php index e40c136..e9d9ddd 100644 --- a/lib/tpl/main.php +++ b/lib/tpl/main.php @@ -14,7 +14,7 @@ <?php if ($tube) echo $tube . ' - ' ?> - <?php echo $serverLabel ? $serverLabel : 'All servers' ?> - + <?php echo !empty($serverLabel) ? $serverLabel : 'All servers' ?> - Beanstalk console