[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins / notifications2 / genie / notifications.php
index 4a788a8..21cb00b 100644 (file)
@@ -21,8 +21,9 @@ function genie_notifications_dist($time) {
        if (!is_array($GLOBALS['notifications'] = @unserialize($GLOBALS['meta']['notifications'])))
                $GLOBALS['notifications'] = array();
 
-       if (!$GLOBALS['notifications']['messagerie'])
+       if (empty($GLOBALS['notifications']['messagerie'])) {
                return;
+       }
        include_spip('base/abstract_sql');
        $envoyer_mail = charger_fonction('envoyer_mail','inc');