vote-comment problem as guest user

  • Posts: 20
  • Thank you received: 0
3 years 1 month ago #330891

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3.5

Hi
when send a vote(vote and comment sync) as guest user, your request doesn't have any response in network tab
and where is problem?;)
in vote class at path:
administrator/components/com_hikashop/classes/vote.php in line 364 if $count equal zero then $data->product_average_score will equal NaN
this problem can solve by a small trick, in line 365 replace with this:

$data->product_average_score = is_nan($sum / $count) ? 0 : $sum / $count;

I hope helped to Hika a little

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 1 month ago #330894

Hi,

Thanks for your feedback !
We've added the patch on our end.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum