aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 16:38:22 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 16:38:22 +0000
commit1cdfbf3122ee28047f5f6409cf1c0d6b3ce8902a (patch)
tree7a6226615867f9598a2b0f09ce9ff772810a5350
parentb5f8554d32f0ab1a1f0fe34688694cc75539e729 (diff)
downloadelgg-1cdfbf3122ee28047f5f6409cf1c0d6b3ce8902a.tar.gz
elgg-1cdfbf3122ee28047f5f6409cf1c0d6b3ce8902a.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@840 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/entities.php2
-rw-r--r--engine/lib/users.php4
2 files changed, 3 insertions, 3 deletions
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;
}