aboutsummaryrefslogtreecommitdiffstats
path: root/include/menubar.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-06-05 22:01:15 +0000
committerrub <rub@piwigo.org>2007-06-05 22:01:15 +0000
commit182fb00f8f7873d220ab8502a31357f9245fbf8f (patch)
treef9e2a44bfc3d93bea8d2e804286a56c88e69ae98 /include/menubar.inc.php
parenta42b553c48acfea369579186a6ca6ea2cdb3ca62 (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 '')
-rw-r--r--include/menubar.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php
index aa3f490ca..56a597e2d 100644
--- a/include/menubar.inc.php
+++ b/include/menubar.inc.php
@@ -163,7 +163,7 @@ if ('tags' == $page['section'])
}
//---------------------------------------------------------- special categories
// favorites categories
-if ( !$user['is_the_guest'] )
+if ( !is_a_guest() )
{
$template->assign_block_vars('username', array());
@@ -242,7 +242,7 @@ $template->assign_block_vars(
);
//--------------------------------------------------------------------- summary
-if ($user['is_the_guest'])
+if (is_a_guest())
{
$template->assign_block_vars('login', array());