summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-15 16:32:29 +0100
committerSimon Rettberg2024-01-15 16:32:29 +0100
commita89346c0e7bd93f8f69f66be44fe1fe53dc5f032 (patch)
tree53665b26ff74363a447ffe41b24f850dff58fcdb /modules-available
parent[serversetup-bwlp-ipxe] Add missing null check (diff)
downloadslx-admin-a89346c0e7bd93f8f69f66be44fe1fe53dc5f032.tar.gz
slx-admin-a89346c0e7bd93f8f69f66be44fe1fe53dc5f032.tar.xz
slx-admin-a89346c0e7bd93f8f69f66be44fe1fe53dc5f032.zip
[vmstore] Restore warning on unconfigured vmstore
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/vmstore/hooks/main-warning.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/vmstore/hooks/main-warning.inc.php b/modules-available/vmstore/hooks/main-warning.inc.php
index ca2d1382..50d81ac8 100644
--- a/modules-available/vmstore/hooks/main-warning.inc.php
+++ b/modules-available/vmstore/hooks/main-warning.inc.php
@@ -4,7 +4,7 @@
* Hook for main page: Show warning if vmstore not configured yet; set "warning" flag if so
*/
-if (!is_array(Property::getVmStoreConfig())) {
+if (empty(Property::getVmStoreConfig())) {
Message::addError('vmstore.vmstore-not-configured', true); // Always specify module prefix since this is running in main
$needSetup = true; // Set $needSetup to true if you want a warning badge to appear in the menu
}