[search] avoid division by zero

This commit is contained in:
plegall
2024-09-09 12:13:17 +02:00
parent d0b3227ed4
commit 5c080bf379

View File

@@ -505,6 +505,11 @@ SELECT
foreach ($filter_rows as $row)
{
if ($row['width'] <= 0 and $row['height'] <= 0)
{
continue;
}
$r = $row['width'] / $row['height'];
if ($r < 0.95)
{