From: Evan Prodromou <evan@status.net>
Date: Wed, 21 Mar 2012 01:13:12 +0000 (-0400)
Subject: Use this for scope check
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d2d75823a4617d532e9f17178b4fa3a2dff55c68;p=quix0rs-gnu-social.git

Use this for scope check
---

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);