From 1606340af2f2e59f75d4e8beac707cd507b1f84e Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 30 Nov 2022 14:43:40 +0100 Subject: [PATCH] Only save currency if its different than current setting --- src/pages/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/profile.php b/src/pages/profile.php index a517d39f..9929bc21 100644 --- a/src/pages/profile.php +++ b/src/pages/profile.php @@ -105,7 +105,7 @@ if (isset($_POST['user-id'], $_POST['section'])) { } /** Currency */ - if (isset($_POST['user-currency']) && $_POST['user-currency'] !== $_SESSION['user']->getLocale()) { + if (isset($_POST['user-currency']) && $_POST['user-currency'] !== $_SESSION['user']->getLocale() && $_POST['user-currency'] !== $_SESSION['user']->getCurrency()) { $_SESSION['user']->setCurrency($_POST['user-currency']); $set[] = '`currency` = "' . $_SESSION['user']->getCurrency() . '"';