From 9497a81d67a7c326a973411bd382dff237628423 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 30 Jun 2008 10:53:32 +0000 Subject: Fixed minor cache counting issue git-svn-id: https://code.elgg.org/elgg/trunk@1207 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 284140ca1..1d446cff5 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -464,7 +464,7 @@ $this->attributes[$key] = $value; // Increment the portion counter - $this->attributes['tables_loaded'] ++; + if (!$this->isFullyLoaded()) $this->attributes['tables_loaded'] ++; // Cache object handle if ($this->attributes['guid']) cache_entity($this); -- cgit v1.2.3