From 40f666129c9d77532090d75cfc7e0a6a7cd5158f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 1 Apr 2024 09:23:20 -0400 Subject: [PATCH] Show console in navbar when there are no monitors yet defined. --- web/skins/classic/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 967cb9612..befa9b080 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -651,7 +651,7 @@ function getConsoleHTML() { global $user; $result = ''; - if (count($user->viewableMonitorIds())) { + if (count($user->viewableMonitorIds()) or !ZM\Monitor::find_one()) { $result .= ''.PHP_EOL; }