diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/page/elements/videolist_block.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/default/page/elements/videolist_block.php b/views/default/page/elements/videolist_block.php index 69f9394fb..a0653a09e 100644 --- a/views/default/page/elements/videolist_block.php +++ b/views/default/page/elements/videolist_block.php @@ -8,6 +8,7 @@ * @uses $vars['limit'] The number of comments to display */ +$entity_guid = get_input('guid', ELGG_ENTITIES_ANY_VALUE); $container_guid = elgg_extract('container_guid', $vars, ELGG_ENTITIES_ANY_VALUE); $container = get_entity($container_guid); @@ -19,6 +20,7 @@ $options = array( 'subtypes' => 'videolist_item', 'full_view' => false, 'pagination' => false, + 'wheres' => array('guid <> ' . $entity_guid), // exclude this item from list. ); if($container) { |