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
This commit is contained in:
rub
2007-06-05 22:01:15 +00:00
parent a42b553c48
commit 182fb00f8f
16 changed files with 72 additions and 47 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ SELECT user_id,
else
{
$image_only = true;
if (!$user['is_the_guest'])
if (!is_a_guest())
{// auto session was created - so switch to guest
$user = build_user( $conf['guest_id'], true );
}