aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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!="")
{