getkirby-v2/toolkit

$page->documents()->filterBy('language', '!=', '')->toJson() calls ratio()

Closed this issue · 1 comments

This $page->documents()->filterBy('language', '!=', '')->toJson() seems to call the ratio() function in kirby/toolkit/lib/dimensions.php

Warning:  Division by zero in kirby/toolkit/lib/dimensions.php on line 68

(I am on Version 2.2.3)

I just fixed this on the develop branch.