From dcdb02f0efbd7dc0c6578be0ea13e8e452bc7cf0 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 27 Sep 2017 14:29:04 +0200 Subject: [PATCH] Fix wrong values definition for user update --- public/pages/profileedit.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/pages/profileedit.php b/public/pages/profileedit.php index 8ab9e8a1a..f007c17e6 100644 --- a/public/pages/profileedit.php +++ b/public/pages/profileedit.php @@ -70,12 +70,12 @@ switch ($action) { $data['user_roles_id'], $data['notes'], $data['invites'], - (isset($_POST['movieview']) ? '1' : '0'), - (isset($_POST['musicview']) ? '1' : '0'), - (isset($_POST['gameview']) ? '1' : '0'), - (isset($_POST['xxxview']) ? '1' : '0'), - (isset($_POST['consoleview']) ? '1' : '0'), - (isset($_POST['bookview']) ? '1' : '0'), + (isset($_POST['movieview']) ? 1 : 0), + (isset($_POST['musicview']) ? 1 : 0), + (isset($_POST['gameview']) ? 1 : 0), + (isset($_POST['xxxview']) ? 1 : 0), + (isset($_POST['consoleview']) ? 1 : 0), + (isset($_POST['bookview']) ? 1 : 0), $_POST['queuetypeids'], $_POST['nzbgeturl'] ?? '', $_POST['nzbgetusername'] ?? '', @@ -84,8 +84,8 @@ switch ($action) { $_POST['sabapikey'] ?? '', $_POST['sabpriority'] ?? '', $_POST['sabapikeytype'] ?? '', - $_POST['nzbvortex_server_url'] ?? false, - $_POST['nzbvortex_api_key'] ?? false, + $_POST['nzbvortex_server_url'] ?? '', + $_POST['nzbvortex_api_key'] ?? '', $_POST['cp_url'] ?? '', $_POST['cp_api'] ?? '', (int) Settings::settingValue('site.main.userselstyle') === 1 ? $_POST['style'] : 'None'