vote-comment problem as guest user

  • Posts: 22
  • Thank you received: 0
3 years 8 months 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: 82867
  • Thank you received: 13374
  • MODERATOR
3 years 8 months 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.054 seconds
Powered by Kunena Forum