aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 10:16:19 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 10:16:19 +0000
commitecd6f2180a5c2d846e15d2205f696f52bce9a575 (patch)
tree1470a4e3eb2fb7f2cce08f516260f73d839359e6 /engine/lib/entities.php
parentd599fe0cfb93bad66a194ffd11e44a97867c0fa0 (diff)
downloadelgg-ecd6f2180a5c2d846e15d2205f696f52bce9a575.tar.gz
elgg-ecd6f2180a5c2d846e15d2205f696f52bce9a575.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Exception thrown if load fails git-svn-id: https://code.elgg.org/elgg/trunk@389 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 4a588368d..60ad89733 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -273,8 +273,8 @@
*/
protected function load($guid)
{
- $row = get_entity_as_row($guid);
-
+ $row = get_entity_as_row($guid);
+
if ($row)
{
// Create the array if necessary - all subclasses should test before creating
@@ -608,7 +608,9 @@
$query .= " $w and ";
$query .= " (access_id in {$access} or (access_id = 0 and owner_guid = {$_SESSION['guid']}))"; // Add access controls
$query .= " order by $order_by limit $offset, $limit"; // Add order and limit
- $dt = get_data($query, "entity_row_to_elggstar");
+
+ $dt = get_data($query, "entity_row_to_elggstar");
+
return $dt;
}