[horde] Ansel div zero errors

Simon Wilson simon at simonandkate.net
Tue Jul 15 21:47:08 UTC 2014


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.

Simon.

-- 
Simon Wilson
M: 0400 12 11 16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1339 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/horde/attachments/20140716/76743c45/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.horde.org/archives/horde/attachments/20140716/76743c45/attachment-0001.bin>


More information about the horde mailing list