aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-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;
}