diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 09:48:32 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 09:48:32 -0400 |
commit | 8d3f4e55c765781824902f763ab499d49d3ce430 (patch) | |
tree | 170bb0f3e9979ab5bf1f86c5c1029eeb804a59d9 /views/default/river/object | |
parent | 4a7b02539323ff74ebcc8f99b853a00ac4c00c1d (diff) | |
download | elgg-8d3f4e55c765781824902f763ab499d49d3ce430.tar.gz elgg-8d3f4e55c765781824902f763ab499d49d3ce430.tar.bz2 |
Fixes #34 checks that the album exists before using it
Diffstat (limited to 'views/default/river/object')
-rw-r--r-- | views/default/river/object/tidypics_batch/create.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/river/object/tidypics_batch/create.php b/views/default/river/object/tidypics_batch/create.php index 418cf1ac3..dc47284d2 100644 --- a/views/default/river/object/tidypics_batch/create.php +++ b/views/default/river/object/tidypics_batch/create.php @@ -19,6 +19,10 @@ $images = elgg_get_entities_from_relationship(array( )); $album = $batch->getContainerEntity(); +if (!$album) { + // something went quite wrong - this batch has no associated album + return true; +} $album_link = elgg_view('output/url', array( 'href' => $album->getURL(), 'text' => $album->getTitle(), |