Merge pull request #104 from shadlaws/fix_1966

#1966 - "Fix your Gallery" shows 60/59 items completed.
This commit is contained in:
Bharat Mediratta
2013-01-26 11:00:56 -08:00
+1 -1
View File
@@ -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");