aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects/list
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 18:56:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 18:56:31 +0000
commit3b6143c0c5861685a8161e7816824a225290185f (patch)
treef21baca893b1d6fb9389770a284a8ff3cf04426d /views/default/layout/objects/list
parentf23218799dcc49448603c95eabf1179c6f179533 (diff)
downloadelgg-3b6143c0c5861685a8161e7816824a225290185f.tar.gz
elgg-3b6143c0c5861685a8161e7816824a225290185f.tar.bz2
updated the default object entity view
git-svn-id: http://code.elgg.org/elgg/trunk@7773 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects/list')
-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(