aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php4
-rw-r--r--mod/tasklist/start.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index c463f5227..cff2f03a6 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -114,10 +114,10 @@
{
$md = get_metadata_byname($this->getGUID(), $name);
- // if ($md)
+ if ($md)
return $md->value;
- // return null;
+ return null;
}
/**
diff --git a/mod/tasklist/start.php b/mod/tasklist/start.php
index 6247041f4..6b3ae4880 100644
--- a/mod/tasklist/start.php
+++ b/mod/tasklist/start.php
@@ -29,9 +29,7 @@
// Task
$task = $entity->getMetaData("task");
-print_r($task);
-print_r($entity);
-echo "TSD : $task" . gettype($task);
+
// Render the item
return elgg_view("tasklist/item", array(
"owner_id" => $entity->owner_guid,