aboutsummaryrefslogtreecommitdiffstats
path: root/feed.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-22 05:31:08 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-22 05:31:08 +0000
commit20ba76b753f53c00fece9cc727e60414c7e95570 (patch)
tree7ee1505efec7140307eb2bc94905cba3b0e268d8 /feed.php
parentcea58b64ee31c3b34887845bef6761edee3c6fc7 (diff)
- change the way conf['guest_access'] is handled so that web services work correctly (and also nbm.php and feed.php)
git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
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');