diff options
author | cash <cash.costello@gmail.com> | 2011-11-18 21:57:52 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-18 21:57:52 -0500 |
commit | 52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336 (patch) | |
tree | 5368fbc0434e1cdb9c87ac41b6fac3099984931c /engine/classes/ElggEntity.php | |
parent | d9848f73bdfbf3bca6fbfe9939e307775279da91 (diff) | |
download | elgg-52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336.tar.gz elgg-52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336.tar.bz2 |
Fixes #4111 guid is now an int
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r-- | engine/classes/ElggEntity.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index fdf2a80ea..df87082fe 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -1335,6 +1335,9 @@ abstract class ElggEntity extends ElggData implements $this->attributes['tables_loaded']++; } + // guid needs to be an int http://trac.elgg.org/ticket/4111 + $this->attributes['guid'] = (int)$this->attributes['guid']; + // Cache object handle if ($this->attributes['guid']) { cache_entity($this); |