From: Michael J Rubinsky Date: Mon, 3 Jan 2011 18:56:29 +0000 (-0500) Subject: always send an imgs array, even if it's empty X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=71f6034955323c505e2fbdd53b89f051bfabbefa;p=horde.git always send an imgs array, even if it's empty --- diff --git a/ansel/js/mobile.js b/ansel/js/mobile.js index 615f0d155..18b73d62b 100644 --- a/ansel/js/mobile.js +++ b/ansel/js/mobile.js @@ -184,4 +184,4 @@ var AnselMobile = { }); } }; -$(AnselMobile.onDocumentReady); \ No newline at end of file +$(AnselMobile.onDocumentReady); diff --git a/ansel/lib/Gallery.php b/ansel/lib/Gallery.php index a28ff897b..26022f966 100644 --- a/ansel/lib/Gallery.php +++ b/ansel/lib/Gallery.php @@ -1018,12 +1018,13 @@ class Ansel_Gallery extends Horde_Share_Object_Sql_Hierarchical implements Seria $json->dm = $this->get('date_modified'); $json->d = $this->get('desc'); $json->ki = Ansel::getImageUrl($this->getKeyImage(), 'mini', false, Ansel::getStyleDefinition('ansel_default'))->toString(); + $json->imgs = array(); // Parent $parents = $this->get('parents'); if (empty($parents)) { $json->p = null; - $json->pn - null; + $json->pn = null; } else { $parents = explode(':', $parents); $json->p = array_pop($parents);