[Tickets #11229] Api getGalleries function return empty array

bugs at horde.org bugs at horde.org
Fri Jun 22 22:39:24 UTC 2012


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

Ticket URL: http://bugs.horde.org/ticket/11229
------------------------------------------------------------------------------
  Ticket             | 11229
  Created By         | maxime at chavagne.net
  Summary            | Api getGalleries function return empty array
  Queue              | Ansel
  Version            | 2.0.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


maxime at chavagne.net (2012-06-22 22:39) wrote:

Hello.

When trying to retrieve gallery datas via the api I get an empty array :
ansel/lib/Api.php on line 759

         $galleries = array();
         foreach ($results as $gallery) {
             $galleries[$gallery->id] = array_merge(
                 $gallery->data,
                 array('crumbs' => $gallery->getGalleryCrumbData()));
         }

I think it should be  :

         $galleries = array();
         foreach ($results as $gallery) {
             $galleries[$gallery->id] = array_merge(
                 $gallery->toArray(),
                 array('crumbs' => $gallery->getGalleryCrumbData()));
         }




maxime at chavagne.net (2012-06-22 22:39) uploaded:  
ansel-api-getGalleries-2.0.1.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=ansel-api-getGalleries-2.0.1.patch&ticket=11229&fn=%2Fansel-api-getGalleries-2.0.1.patch





More information about the bugs mailing list