From bb71b79f72db01331088beca1aac8c488b65bae5 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 12 Nov 2008 17:35:53 +0000 Subject: git-svn-id: https://code.elgg.org/elgg/trunk@2445 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine') 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!="") { -- cgit v1.2.3