aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 17:16:54 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 17:16:54 +0000
commit1124c6e9a16cdc5b9f7d31499faefbccaccdab7a (patch)
treebe8029beda2965b3503c3f8f54cf8fc29a2adc51 /engine/lib/entities.php
parentf2b8841f68f4a0c47a06fb063413b7b2317a9533 (diff)
downloadelgg-1124c6e9a16cdc5b9f7d31499faefbccaccdab7a.tar.gz
elgg-1124c6e9a16cdc5b9f7d31499faefbccaccdab7a.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Caching complete git-svn-id: https://code.elgg.org/elgg/trunk@843 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index cf0e544b6..f95993dcb 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -724,7 +724,7 @@
$guid = (int)$guid;
if (isset($ENTITY_CACHE[$guid]))
- return $ENTITY_CACHE[$guid];
+ if ($ENTITY_CACHE[$guid]->isFullyLoaded()) return $ENTITY_CACHE[$guid];
return false;
}