Added debug lines, the first attempt didn't work and I have *no* development system...
authorRoland Haeder <roland@mxchange.org>
Fri, 27 Mar 2015 21:07:51 +0000 (22:07 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 27 Mar 2015 21:07:51 +0000 (22:07 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/Notice.php

index e04bdbabe65ca08c246cd49a41d6a909702b79dd..02b8ce3549f3b79ca4fb6715e6c762a997f87f0e 100644 (file)
@@ -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();