diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-29 11:45:27 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-29 11:45:27 -0700 |
commit | 6a13a238bbd2dea9198ac4682faeba18eb6af4a9 (patch) | |
tree | 4d234ade4a129041aa46a5beb79af6b6f61f5d89 /modules/gallery/controllers/movies.php | |
parent | a08cd0db4e0b90bd625b8c4c608c41a4c41721d1 (diff) |
Convert the "parents" variable from a result iterator to an array so
that the theme can call empty() on it. Fixes #1318.
Diffstat (limited to 'modules/gallery/controllers/movies.php')
-rw-r--r-- | modules/gallery/controllers/movies.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index 02d2a497..717eb8aa 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -41,7 +41,7 @@ class Movies_Controller extends Items_Controller { $template->set_global("item", $movie); $template->set_global("children", array()); $template->set_global("children_count", 0); - $template->set_global("parents", $movie->parents()); + $template->set_global("parents", $movie->parents()->as_array()); $template->set_global("next_item", $next_item); $template->set_global("previous_item", $previous_item); $template->set_global("sibling_count", $movie->parent()->viewable()->children_count($where)); |