diff options
author | rub <rub@piwigo.org> | 2007-06-05 22:01:15 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-06-05 22:01:15 +0000 |
commit | 182fb00f8f7873d220ab8502a31357f9245fbf8f (patch) | |
tree | f9e2a44bfc3d93bea8d2e804286a56c88e69ae98 /include/functions_html.inc.php | |
parent | a42b553c48acfea369579186a6ca6ea2cdb3ca62 (diff) |
Resolved issue 0000697: with generic user a author name is necessary to comment picture.
+ Change way to determinate if user is a guest (use functions like is_admin)
git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r-- | include/functions_html.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index db6d12710..af74d0f69 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -574,7 +574,7 @@ function access_denied() get_root_url().'identification.php?redirect=' .urlencode(urlencode($_SERVER['REQUEST_URI'])); - if ( isset($user['is_the_guest']) and !$user['is_the_guest'] ) + if ( isset($user) and !is_a_guest() ) { echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />'; echo '<a href="'.get_root_url().'identification.php">'.$lang['identification'].'</a> '; |