Skip to content
Code-Schnipsel Gruppen Projekte
Commit ae339c05 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: convertWithSign.php: add class existence check

Added a condition to check if the class 'QUI\\ERP\\Money\\Price' exists before executing the rest
of the code in the convertWithSign.php file in the ajax directory. This fix prevents potential
errors and improves code stability.

Related: #9
Übergeordneter 700ca442
No related branches found
No related tags found
2 Merge Requests!52Update 'next-3.x' with latest changes from 'main',!51fix(phpstan): update function parameter data types
Pipeline #14522 bestanden mit Phase
in 1 Minute und 42 Sekunden
......@@ -18,6 +18,10 @@ function ($data) {
$data = json_decode($data, true);
$result = [];
if (!class_exists('QUI\ERP\Money\Price')) {
return $result;
}
foreach ($data as $entry) {
$amount = $entry['amount'];
$currencyFrom = $entry['from'];
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren