X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Fnotifications2%2Fgenie%2Fnotifications.php;h=21cb00bf4a98f6f07c9e075edd98ab6c79442b1b;hb=4f443dce95ff6f8221c189880a70c74ce1c1f238;hp=4a788a8bc03fd1e02db8f0c2d218ac877235cfb9;hpb=4a628e9b277d3617535f99d663ca79fa2e891177;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/notifications2/genie/notifications.php b/www/plugins/notifications2/genie/notifications.php index 4a788a8b..21cb00bf 100644 --- a/www/plugins/notifications2/genie/notifications.php +++ b/www/plugins/notifications2/genie/notifications.php @@ -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');