mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-09 06:58:10 +01:00
[search] avoid division by zero
This commit is contained in:
1 parent
d0b3227ed4
commit
5c080bf379
1 file changed
+5
@@ -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