summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-26 11:00:56 -0800
committerBharat Mediratta <bharat@menalto.com>2013-01-26 11:00:56 -0800
commitb06c0f4890a3a3bfd1bdf6b2b8238a0d07fc7ccf (patch)
tree9b817d440902d2549ab7fb94a29bc03f8914d8eb /modules/gallery/helpers
parentc508fc4a45f0af94c89ba7f0ac1533244a7f35a3 (diff)
parent603db40459fdaebb5917c8c5aef922476700dce2 (diff)
Merge pull request #104 from shadlaws/fix_1966
#1966 - "Fix your Gallery" shows 60/59 items completed.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_task.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php
index e986b822..856d2639 100644
--- a/modules/gallery/helpers/gallery_task.php
+++ b/modules/gallery/helpers/gallery_task.php
@@ -691,7 +691,7 @@ class gallery_task_Core {
break;
case self::FIX_STATE_RUN_MISSING_ACCESS_CACHES:
- $stack = explode(" ", $task->get("stack"));
+ $stack = array_filter(explode(" ", $task->get("stack"))); // filter removes empty/zero ids
if (!empty($stack)) {
$id = array_pop($stack);
$access_cache = ORM::factory("access_cache");