Resolved issue 0000717: guest must be guest

git-svn-id: http://piwigo.org/svn/trunk@2055 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-07-07 09:23:04 +00:00
parent c946500244
commit f3b1fed9c6
4 changed files with 17 additions and 0 deletions
+6
View File
@@ -149,6 +149,12 @@ function build_user( $user_id, $use_cache )
$user['id'] = $user_id;
$user = array_merge( $user, getuserdata($user_id, $use_cache) );
if ($user['id'] == $conf['guest_id'] and $user['status'] <> 'guest')
{
$user['status'] = 'guest';
$user['internal_status']['guest_must_be_guest'] = true;
}
// calculation of the number of picture to display per page
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];