aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-18 21:57:52 -0500
committercash <cash.costello@gmail.com>2011-11-28 21:44:00 -0500
commit1cfd760ee857011499b999ce282b5c1a98b94dca (patch)
tree5ed1db25465d30bc36f049dff5c8e5df216e2165 /engine/classes/ElggEntity.php
parentb12039be030a54fa05dc3758254542075b130f34 (diff)
downloadelgg-1cfd760ee857011499b999ce282b5c1a98b94dca.tar.gz
elgg-1cfd760ee857011499b999ce282b5c1a98b94dca.tar.bz2
Fixes #4111 guid is now an int
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php3
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);