aboutsummaryrefslogtreecommitdiffstats
path: root/feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/feed.php b/feed.php
index d3d8193cb..2b6142d32 100644
--- a/feed.php
+++ b/feed.php
@@ -86,7 +86,6 @@ SELECT user_id,
}
if ($feed_row['user_id']!=$user['id'])
{ // new user
- $user = array();
$user = build_user( $feed_row['user_id'], true );
}
}
@@ -95,11 +94,13 @@ else
$image_only = true;
if (!$user['is_the_guest'])
{// auto session was created - so switch to guest
- $user = array();
$user = build_user( $conf['guest_id'], true );
}
}
+// Check the status now after the user has been loaded
+check_status(ACCESS_GUEST);
+
list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php');