mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#3481 [advs-module] Currency error when viewing an ad
This commit is contained in:
parent
0db3fbec95
commit
c74b8139e3
@ -592,7 +592,7 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
|
|
||||||
$foreign_currencies = json_decode($adv->foreign_currencies, true);
|
$foreign_currencies = json_decode($adv->foreign_currencies, true);
|
||||||
if ($_COOKIE['currency'] && $adv->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
if (isset($_COOKIE['currency']) && $_COOKIE['currency'] && $adv->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
||||||
$adv->currency = $_COOKIE['currency'];
|
$adv->currency = $_COOKIE['currency'];
|
||||||
$adv->price = $foreign_currencies[$_COOKIE['currency']];
|
$adv->price = $foreign_currencies[$_COOKIE['currency']];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user