[cvs] commit: ansel/lib Ansel.php
Michael Rubinsky
mike at theupstairsroom.com
Sat Apr 12 14:34:58 UTC 2008
mrubinsk 2008-04-12 10:34:58 EDT
Modified files:
lib Ansel.php
Log:
Don't return a PEAR_Error from getImages() when image count == 0, return
an empty array instead.
Also, check the (already loaded) value of _data['images'] before we attempt
to query the database - saves an additional db query for those galleries
that only contain subgalleries.
Bug: 6564
Revision Changes Path
1.395 +3 -4 ansel/lib/Ansel.php
Chora Links:
http://cvs.horde.org/diff.php/ansel/lib/Ansel.php?r1=1.394&r2=1.395&ty=u
More information about the cvs
mailing list