[Tickets #3855] RESOLVED: lib/Block/gallery.php dies with fatal error if specified gallery doesn't exist

bugs@bugs.horde.org bugs at bugs.horde.org
Thu May 4 10:16:26 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3855
-----------------------------------------------------------------------
 Ticket             | 3855
 Updated By         | dorm at dorm.org
 Summary            | lib/Block/gallery.php dies with fatal error if specified gallery doesn't exist
 Queue              | Ansel
 State              | Resolved
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


dorm at dorm.org (2006-05-04 10:16) wrote:

This fixed the random gallery side of things, but it still dies if the block
is explicitly configured for a particular gallery, and that gallery doesn't
exist.  (e.g. the block was configured for a gallery and then later the
gallery was deleted.)

This seems to be the result of &$GLOBALS['ansel_shares']->getGallery(..) not
returning NULL when the gallery doesn't exist.  Instead it still returns a
gallery object, with it's name parameter as NULL.





More information about the bugs mailing list