diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-09 12:15:18 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-09 12:15:18 +0000 |
commit | 8f4260e2a46eba16ebc2462ec1d23260e8377482 (patch) | |
tree | 4536ccc7fc337705e2c0cacf336f798f305db211 /engine/lib/entities.php | |
parent | 8c1ee672febd8f2579b8ee4b8c20e3b5b5a5970e (diff) | |
download | elgg-8f4260e2a46eba16ebc2462ec1d23260e8377482.tar.gz elgg-8f4260e2a46eba16ebc2462ec1d23260e8377482.tar.bz2 |
Interim fix for user saving
git-svn-id: https://code.elgg.org/elgg/trunk@830 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 52ed40f8b..db3665c6f 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -385,8 +385,9 @@ * Save generic attributes to the entities table. */ public function save() - { - if ($this->guid != "" && $this->guid > 0) + {
+ $guid = (int) $this->guid; + if ($guid > 0) { return update_entity( $this->get('guid'), |