getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

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

Closed Pascalmh closed 8 years ago

Pascalmh commented 8 years ago

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)

bastianallgeier commented 8 years ago

I just fixed this on the develop branch.