We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a consequence of #2770, see: https://forums.cubecart.com/topic/56970-upgrade-to-643-now-getting-this-error/
In /classes/cubecart.class.php, near lines 125-127, find: if ($product_review[0]['Score'] !== "") { $product['review_score'] = round($product_review[0]['Score']/$product_review[0]['Count'], 1); } Suggest: if (!empty($product_review[0]['Count'])) { $product['review_score'] = round($product_review[0]['Score']/$product_review[0]['Count'], 1); }
The text was updated successfully, but these errors were encountered:
I was going to suggest;
if (!empty($product_review[0]['Count']) && $product_review[0]['Count']>0) {
but 0 is empty.
Sorry, something went wrong.
#2876
33a0a89
abrookbanks
No branches or pull requests
There is a consequence of #2770, see: https://forums.cubecart.com/topic/56970-upgrade-to-643-now-getting-this-error/
The text was updated successfully, but these errors were encountered: