aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 17:48:49 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 17:48:49 +0000
commit1fe024101644108971d9b64acd8ba8f866ee4b24 (patch)
tree52ad6ee1b58c7a3df9fcfaf6f22e1f41bde67872 /engine/lib/entities.php
parent46dd43f10bfd04792c4d3cc17d86b9cc308ccfd2 (diff)
downloadelgg-1fe024101644108971d9b64acd8ba8f866ee4b24.tar.gz
elgg-1fe024101644108971d9b64acd8ba8f866ee4b24.tar.bz2
Added extra belts and braces check (minor)
git-svn-id: https://code.elgg.org/elgg/trunk@2551 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 2f8653ce2..4277e78e2 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1412,6 +1412,9 @@
if (!($row instanceof stdClass))
return $row;
+ if ((!isset($row->guid)) || (!isset($row->subtype)))
+ return $row;
+
$new_entity = false;
// Create a memcache cache if we can