From e7a38f799b212885bac53e8f00146cda32430ce6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 Mar 2012 21:13:12 -0400 Subject: [PATCH] Use this for scope check --- classes/Notice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 9e4dbec9e3..68351477f0 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2366,9 +2366,9 @@ class Notice extends Managed_DataObject if ($result === false) { $bResult = false; - if (Event::handle('StartNoticeInScope', array($notice, $profile, &$bResult))) { + if (Event::handle('StartNoticeInScope', array($this, $profile, &$bResult))) { $bResult = $this->_inScope($profile); - Event::handle('EndNoticeInScope', array($notice, $profile, &$bResult)); + Event::handle('EndNoticeInScope', array($this, $profile, &$bResult)); } $result = ($bResult) ? 1 : 0; self::cacheSet($keypart, $result, 0, 300);