From a89346c0e7bd93f8f69f66be44fe1fe53dc5f032 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 15 Jan 2024 16:32:29 +0100 Subject: [vmstore] Restore warning on unconfigured vmstore --- modules-available/vmstore/hooks/main-warning.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-55-g7522