<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Api getGalleries function return empty array</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:49 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11229</link> 
  <atom:link rel="self" type="application/rss+xml" title="Api getGalleries function return empty array" href="https://bugs.horde.org/ticket/11229/rss" /> 
  <description>Api getGalleries function return empty array</description> 
 
   
   
  <item> 
   <title>Hello.

When trying to retrieve gallery datas via the api </title> 
   <description>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-&gt;id] = array_merge(
                $gallery-&gt;data,
                array(&#039;crumbs&#039; =&gt; $gallery-&gt;getGalleryCrumbData()));
        }

I think it should be  :

        $galleries = array();
        foreach ($results as $gallery) {
            $galleries[$gallery-&gt;id] = array_merge(
                $gallery-&gt;toArray(),
                array(&#039;crumbs&#039; =&gt; $gallery-&gt;getGalleryCrumbData()));
        }
</description> 
   <pubDate>Fri, 22 Jun 2012 22:39:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11229#t71641</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 9374a66acca</title> 
   <description>Changes have been made in Git (develop):

commit 9374a66acca60810b07005f0f73d66f8fafc7319
Author: maxime@chavagne.net &lt;maxime@chavagne.net&gt;
Date:   Fri Jul 20 23:45:56 2012 -0400

    Bug: 11229 Fix getting gallery data via the API.
    
    Signed-off-by: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;

 ansel/lib/Api.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/9374a66acca60810b07005f0f73d66f8fafc7319</description> 
   <pubDate>Sat, 21 Jul 2012 03:46:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11229#t71978</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_4):

commit e11e72b</title> 
   <description>Changes have been made in Git (FRAMEWORK_4):

commit e11e72b40ebe594c73e6945a0e0c73610aad4f76
Author: maxime@chavagne.net &lt;maxime@chavagne.net&gt;
Date:   Fri Jul 20 23:45:56 2012 -0400

    Bug: 11229 Fix getting gallery data via the API.
    
    Signed-off-by: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;

 ansel/lib/Api.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/e11e72b40ebe594c73e6945a0e0c73610aad4f76</description> 
   <pubDate>Sat, 21 Jul 2012 03:49:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11229#t71979</link> 
  </item> 
   
  <item> 
   <title>Committed (finally), thanks!</title> 
   <description>Committed (finally), thanks!</description> 
   <pubDate>Sat, 21 Jul 2012 03:53:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11229#t71980</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 9374a66acca6</title> 
   <description>Changes have been made in Git (master):

commit 9374a66acca60810b07005f0f73d66f8fafc7319
Author: maxime@chavagne.net &lt;maxime@chavagne.net&gt;
Date:   Fri Jul 20 23:45:56 2012 -0400

    Bug: 11229 Fix getting gallery data via the API.
    
    Signed-off-by: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;

 ansel/lib/Api.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/9374a66acca60810b07005f0f73d66f8fafc7319</description> 
   <pubDate>Wed, 29 Aug 2012 12:44:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11229#t72588</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
