mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-04 12:32:48 +02:00
[search] avoid division by zero
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user