[horde] Ansel div zero errors
Michael J Rubinsky
mrubinsk at horde.org
Sun Jul 20 22:18:25 UTC 2014
Quoting Simon Wilson <simon at simonandkate.net>:
> I'm getting a lot of these logged (avg 3 or 4 per hour):
>
> 2014-07-15T22:28:29+10:00 WARN: HORDE [ansel] PHP ERROR: Division by
> zero [pid 7116 on line 157 of
> "/var/www/horde/ansel/lib/View/Results.php"]
>
> That section is this, row 157 the last one:
>
>
> // The number of resources to display on this page.
> $view->numimages = count($view->results);
> $view->tilesperrow = $prefs->getValue('tilesperrow');
> $view->cellwidth = round(100 / $this->tilesperrow);
>
> I've resaved my prefs to see if maybe the tiles per row was null,
> will see if that helps.
Fixed in Git:
https://github.com/horde/horde/commit/6f924f86c6606a9a2185bf55eac358b403cc8fbf
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20140720/3e7fff5a/attachment-0001.bin>
More information about the horde
mailing list