aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-08-28 20:05:39 +0000
committerrvelices <rv-github@modusoptimus.com>2008-08-28 20:05:39 +0000
commit844799d0401321704c1ef390a1014118438fe7bd (patch)
tree51e7cb756d2ae130685946c7f8d96e60b753947c /plugins
parent3a67845aaf128fe718b27a89635fb33810ba7e41 (diff)
- fix an issue on category modify (lock/unlock display was reversed) and improved queries on submit
git-svn-id: http://piwigo.org/svn/trunk@2490 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/admin_multi_view/controller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/admin_multi_view/controller.php b/plugins/admin_multi_view/controller.php
index 861df63a7..80098b962 100644
--- a/plugins/admin_multi_view/controller.php
+++ b/plugins/admin_multi_view/controller.php
@@ -30,7 +30,10 @@ if ( isset($_GET['view_as']) )
{
if ( is_adviser() and $user['id']!=$_GET['view_as'] and $conf['guest_id']!=$_GET['view_as'])
die('security error');
- pwg_set_session_var( 'multiview_as', (int)$_GET['view_as'] );
+ if ($user['id']===$_GET['view_as'])
+ pwg_unset_session_var( 'multiview_as' );
+ else
+ pwg_set_session_var( 'multiview_as', (int)$_GET['view_as'] );
// user change resets theme/lang
pwg_unset_session_var( 'multiview_theme' );
pwg_unset_session_var( 'multiview_lang' );