From 1cdfbf3122ee28047f5f6409cf1c0d6b3ce8902a Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 9 Jun 2008 16:38:22 +0000 Subject: git-svn-id: https://code.elgg.org/elgg/trunk@840 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- engine/lib/users.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engine') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 6fc8f2acc..cf0e544b6 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -468,7 +468,7 @@ // Increment the portion counter $this->attributes['tables_loaded'] ++; - echo "LOADED::: " . $this->attributes['tables_loaded']; + // Cache object handle if ($this->attributes['guid']) cache_entity($this); diff --git a/engine/lib/users.php b/engine/lib/users.php index 093ecc6aa..ec22db239 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -150,9 +150,9 @@ // Now save specific stuff $result = create_user_entity($this->get('guid'), $this->get('name'), $this->get('username'), $this->get('password'), $this->get('email'), $this->get('language'), $this->get('code')); - echo "ANOTHER LOAD: ".$this->attributes['tables_loaded']; + // Increment the portion counter - $this->attributes['tables_loaded'] ++; + if ($result) $this->attributes['tables_loaded'] ++; return $result; } -- cgit v1.2.3