aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-12 17:35:53 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-12 17:35:53 +0000
commitbb71b79f72db01331088beca1aac8c488b65bae5 (patch)
tree1ab2e44284180852356e581628719173a638e74b /engine/lib/entities.php
parent8bd16609f79ef098f0bd867c16ef58c0e918e6ef (diff)
downloadelgg-bb71b79f72db01331088beca1aac8c488b65bae5.tar.gz
elgg-bb71b79f72db01331088beca1aac8c488b65bae5.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@2445 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 1a643762e..1d5ad471e 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1294,6 +1294,8 @@
if (!($row instanceof stdClass))
return $row;
+ $new_entity = false;
+
// Create a memcache cache if we can
static $newentity_cache;
if ((!$newentity_cache) && (is_memcache_available()))
@@ -1301,8 +1303,6 @@
if ($newentity_cache) $new_entity = $newentity_cache->load($row->guid);
if ($new_entity) return $new_entity;
- $new_entity = false;
-
$classname = get_subtype_class_from_id($row->subtype);
if ($classname!="")
{