- 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
This commit is contained in:
rvelices
2008-08-28 20:05:39 +00:00
parent 3a67845aaf
commit 844799d040
3 changed files with 53 additions and 48 deletions
+4 -1
View File
@@ -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' );