diff options
author | rub <rub@piwigo.org> | 2007-07-07 09:22:11 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-07-07 09:22:11 +0000 |
commit | 28a8e83485014236ad71b212d0934829d1ac91e9 (patch) | |
tree | b4e49191352d0b52cc3809d47bc10478125f7a32 /include/functions_user.inc.php | |
parent | c281046fcab94c02a085931f026159842791186a (diff) |
Resolved issue 0000717: guest must be guest
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2054 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 564b4b2c7..40a8e7280 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -150,6 +150,12 @@ function build_user( $user_id, $use_cache ) $user['is_the_guest'] = ($user['id'] == $conf['guest_id']); $user['is_the_default'] = ($user['id'] == $conf['default_user_id']); + if ($user['is_the_guest'] 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']; |