Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: A non-numeric value encountered #2025

Closed
Ainschy opened this issue Feb 25, 2019 · 2 comments
Closed

Warning: A non-numeric value encountered #2025

Ainschy opened this issue Feb 25, 2019 · 2 comments
Labels
Milestone

Comments

@Ainschy
Copy link
Contributor

Ainschy commented Feb 25, 2019

$fltAmount += $objOption->getAmount($fltPrice, 0);

Ist ein Options-Wert 0.00 bzw. +0.00 wird an dieser Stelle ein Warning erzeugt.

Warning: A non-numeric value encountered in /srv/www/kunde/public/vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Frontend.php on line 685

$fltAmount += $objOption->getAmount($fltPrice, 0);

da hier versucht wird der Wert als String(0) "" hinzuzufügen.

$fltAmount += (float)$objOption->getAmount($fltPrice, 0);
oder
$fltAmount += floatval($objOption->getAmount($fltPrice, 0));

schafft Abhilfe.

@aschempp
Copy link
Member

Could this be related to #2007?
/cc @fritzmg

@aschempp
Copy link
Member

Fixed in version 2.5.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants