diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-12-20 16:52:43 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-12-20 16:52:43 +0000 |
commit | d8ea07a04acc03160ac73f5db2a9249890e5fd13 (patch) | |
tree | 63e0dfedbfc9565a265cb342da405cd79b4ff341 /preferences.php | |
parent | 69c56f829da3fc44e6dbcc14c364901b86f55421 (diff) | |
download | ampache-d8ea07a04acc03160ac73f5db2a9249890e5fd13.tar.gz ampache-d8ea07a04acc03160ac73f5db2a9249890e5fd13.tar.bz2 ampache-d8ea07a04acc03160ac73f5db2a9249890e5fd13.zip |
sync from 3.5.x and fix display issue on playlist view
Diffstat (limited to 'preferences.php')
-rw-r--r-- | preferences.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/preferences.php b/preferences.php index 546384bc..64763c67 100644 --- a/preferences.php +++ b/preferences.php @@ -24,7 +24,7 @@ require 'lib/init.php'; // Switch on the action switch($_REQUEST['action']) { case 'update_preferences': - if ($_REQUEST['method'] == 'admin' && !Access::check('interface','100')) { + if ($_POST['method'] == 'admin' && !Access::check('interface','100')) { access_denied(); exit; } @@ -35,7 +35,7 @@ switch($_REQUEST['action']) { } /* Reset the Theme */ - if ($_REQUEST['method'] == 'admin') { + if ($_POST['method'] == 'admin') { $user_id = '-1'; $fullname = _('Server'); $_REQUEST['action'] = 'admin'; @@ -63,8 +63,8 @@ switch($_REQUEST['action']) { exit; } - update_preferences($_REQUEST['user_id']); - header("Location: " . Config::get('web_path') . "/admin/users.php?action=show_preferences&user_id=" . scrub_out($_REQUEST['user_id'])); + update_preferences($_POST['user_id']); + header("Location: " . Config::get('web_path') . "/admin/users.php?action=show_preferences&user_id=" . scrub_out($_POST['user_id'])); break; case 'admin': // Make sure only admins here |