mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-03 15:32:53 +02:00
- 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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user