mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
add some more protection
This commit is contained in:
parent
bc9e0d46af
commit
d6316ac4b9
@ -438,7 +438,7 @@ class Report
|
||||
|
||||
trends.each do |trend|
|
||||
ctr =
|
||||
if trend.click_through == 0
|
||||
if trend.click_through == 0 || trend.searches == 0
|
||||
0
|
||||
else
|
||||
trend.click_through.to_f / trend.searches.to_f
|
||||
|
Loading…
x
Reference in New Issue
Block a user