From fca7b3916a54d09e37b603a5dfe0a9fe7ae4a8fe Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Mon, 2 Sep 2024 23:38:36 -0400 Subject: [PATCH] Fixed default currency setting in cron --- upload/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/cron.php b/upload/cron.php index 47a59ada5..202d23bff 100644 --- a/upload/cron.php +++ b/upload/cron.php @@ -143,9 +143,9 @@ } } - if ($currencies) { - $default = $registry->get('config')->get('config_currency'); + $default = $registry->get('config')->get('config_currency'); + if (isset($currencies[$default])) { $results = $registry->get('load')->model('localisation/currency')->model_localisation_currency->getCurrencies(); foreach ($results as $result) {