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=26195d90e2a2544344a456e96cc69b9f07396207;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 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();