From fdcdff0fc24292c7dd6116d4c8c5623adb6646c5 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Jul 2008 18:52:12 +0000 Subject: Fixed comments! git-svn-id: https://code.elgg.org/elgg/trunk@1382 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 +- views/default/comments/forms/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 7cd11bc04..92fb03c88 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -539,7 +539,7 @@ * @return string|false The HTML (etc) for the comments, or false on failure */ function elgg_view_comments($entity){ - + if (!($entity instanceof ElggEntity)) return false; if ($comments = trigger_plugin_hook('comments',$entity->getType(),array('entity' => $entity),false)) { diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php index cb1a65f6b..6a782bbe9 100644 --- a/views/default/comments/forms/edit.php +++ b/views/default/comments/forms/edit.php @@ -12,7 +12,7 @@ * @uses $vars['entity'] */ - if (isset($vars['entity']) && isloggedon()) { + if (isset($vars['entity']) && isloggedin()) { ?> -- cgit v1.2.3