aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects/list/metadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/objects/list/metadata.php')
-rw-r--r--views/default/layout/objects/list/metadata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php
index 6b2fae7bf..43bfaf50b 100644
--- a/views/default/layout/objects/list/metadata.php
+++ b/views/default/layout/objects/list/metadata.php
@@ -7,7 +7,7 @@
*/
$entity = $vars['entity'];
-$handler = $vars['handler'];
+$handler = elgg_get_array_value('handler', $vars, '');
?>
<ul class="elgg-list-metadata">
@@ -23,7 +23,7 @@ echo "<li>$likes</li>";
echo elgg_view("entity/metadata", array('entity' => $entity));
// links to delete or edit.
-if ($entity->canEdit()) {
+if ($entity->canEdit() && $handler) {
$edit_url = "pg/$handler/edit/{$entity->getGUID()}";
$edit_link = elgg_view('output/url', array(