aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-03-27 21:19:31 +0000
committerrub <rub@piwigo.org>2006-03-27 21:19:31 +0000
commit51a4de797c76dbda26741acacbda76013caa5f64 (patch)
treec1bb657262978e97aa19bb919275506d4a62029c /picture.php
parentd63d25a61d2a7bf9272f78c73fbce6a7a3ff6eee (diff)
improvement issue 0000127&0000301:
o Fix Missing Adviser tests o Improve pwg_high , set to is_the_guest default value for enabled_high git-svn-id: http://piwigo.org/svn/trunk@1106 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/picture.php b/picture.php
index ac1b2efbe..98f5dc027 100644
--- a/picture.php
+++ b/picture.php
@@ -99,7 +99,7 @@ $url_self = duplicate_picture_URL();
* Actions finish by a redirection
*/
-if (isset($_GET['action']))
+if (isset($_GET['action']) and !is_adviser())
{
switch ($_GET['action'])
{
@@ -139,7 +139,7 @@ DELETE FROM '.FAVORITES_TABLE.'
}
case 'set_as_representative' :
{
- if (is_admin() and isset($page['category']) and !is_adviser())
+ if (is_admin() and isset($page['category']))
{
$query = '
UPDATE '.CATEGORIES_TABLE.'
@@ -159,10 +159,7 @@ UPDATE '.CATEGORIES_TABLE.'
}
case 'add_to_caddie' :
{
- if (!is_adviser())
- {
- fill_caddie(array($page['image_id']));
- }
+ fill_caddie(array($page['image_id']));
redirect($url_self);
break;
}