diff options
Diffstat (limited to 'views/default/river')
-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(), |