[ansel] Patch to Gallery.php

Chuck Hagenbuch chuck at horde.org
Wed Jan 28 10:48:25 PST 2004


Quoting "Heath S. Hendrickson" <heath at outerspaceconsultants.com>:

> I noticed a little flaw in the logic of the getDefaultImage() function
> in lib/Gallery.php.  It wasn't properly handling the case where
> ['default'] = -1 and ['num-images'] = 0 (in cases where you had an empty
> gallery, it was displaying an error where the default image thumbnail
> was supposed to be, instead of displaying nothing).
>
> Here's a patch to fix it.

Looks good - committed, thanks.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"Here, I brought some cole slaw. It's made from peeeooople! Just kidding."


More information about the ansel mailing list