aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-02-13 10:19:58 +0000
committerplegall <plg@piwigo.org>2005-02-13 10:19:58 +0000
commitd6af5d96289d363177d034dca3ea9e55ea55139d (patch)
tree06ec3e7486d9985c7366efa6dfc91c8d8bdb248d
parent70478add18174e077dcdf6435890117ff3d096c5 (diff)
- no rate form for guest (not connected)
git-svn-id: http://piwigo.org/svn/trunk@734 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--picture.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/picture.php b/picture.php
index ba16916f3..7028da435 100644
--- a/picture.php
+++ b/picture.php
@@ -896,7 +896,7 @@ if ( isset( $_GET['slideshow'] ) )
}
//------------------------------------------------------------------- rate form
-if ($conf['rate'])
+if ($conf['rate'] and !$user['is_the_guest'])
{
$query = '
SELECT rate
@@ -946,7 +946,6 @@ SELECT rate
));
}
}
-
//---------------------------------------------------- users's comments display
if ($page['show_comments'])
{