From ce30681cc3a94fc3d6f37bb2e22e4e8ab12e1d25 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Wed, 10 Oct 2012 23:21:47 +0000 Subject: [PATCH] Removed $syspref global --- e107_handlers/notify_class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_handlers/notify_class.php b/e107_handlers/notify_class.php index 204c22a37..460eb05e9 100644 --- a/e107_handlers/notify_class.php +++ b/e107_handlers/notify_class.php @@ -31,9 +31,10 @@ class notify function notify() { - global $sysprefs, $e_event, $eArrayStorage; - $this->notify_prefs = $sysprefs->get('notify_prefs'); - $this->notify_prefs = $eArrayStorage->ReadArray($this->notify_prefs); + global $e_event; + + $this->notify_prefs = e107::getConfig("notify")->getPref(); + if(varset($this->notify_prefs['event'])) { foreach ($this->notify_prefs['event'] as $id => $status)