From: Roland Haeder Date: Fri, 27 Mar 2015 21:07:51 +0000 (+0100) Subject: Added debug lines, the first attempt didn't work and I have *no* development system... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e85d6c7ed818482195cbf41b89da44a2b0c44c2d;p=quix0rs-gnu-social.git Added debug lines, the first attempt didn't work and I have *no* development system now. :-( Signed-off-by: Roland Haeder --- diff --git a/classes/Notice.php b/classes/Notice.php index 764b4edd8b..453de30ffe 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2695,9 +2695,11 @@ class Notice extends Managed_DataObject $user = common_current_user(); // Is the general scope check okay and the user in logged in? + /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . ']: inScope=' . intval($inScope) . ',user[]=' . gettype($user)); if (($inScope === TRUE) && ($user instanceof User)) { // Get profile from it $profile = $user->getProfile(); + /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . ']: inScope=' . intval($inScope) . ',profile[]=' . gettype($profile)); /* * Check scope, else a privacy leaks happens this way: @@ -2718,6 +2720,7 @@ class Notice extends Managed_DataObject * very political words. */ $inScope = $this->inScope($profile); + /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . ']: inScope=' . intval($inScope) . ' - After inScope() has been called.'); } $tags = array();