From 26195d90e2a2544344a456e96cc69b9f07396207 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 27 Mar 2015 22:07:51 +0100 Subject: [PATCH] Added debug lines, the first attempt didn't work and I have *no* development system now. :-( Signed-off-by: Roland Haeder --- classes/Notice.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Notice.php b/classes/Notice.php index e04bdbabe6..02b8ce3549 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2510,9 +2510,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: @@ -2533,6 +2535,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(); -- 2.39.2