diff options
Diffstat (limited to 'modules-available/vmstore/hooks/main-warning.inc.php')
-rw-r--r-- | modules-available/vmstore/hooks/main-warning.inc.php | 2 |
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 } |