diff options
author | rub <rub@piwigo.org> | 2007-07-07 09:23:04 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-07-07 09:23:04 +0000 |
commit | f3b1fed9c61a4fa9e3e761191e9d377f06d52f80 (patch) | |
tree | c50364f66e3691baf37c33f63d5d67a3f58abaea /include/functions_user.inc.php | |
parent | c9465002447bd13fcd18f952d3530435c938c764 (diff) |
Resolved issue 0000717: guest must be guest
git-svn-id: http://piwigo.org/svn/trunk@2055 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r-- | include/functions_user.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 26ca7dd7e..f3b078dbf 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -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']; |