aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggObject.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-18 21:57:52 -0500
commit52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336 (patch)
tree5368fbc0434e1cdb9c87ac41b6fac3099984931c /engine/classes/ElggObject.php
parentd9848f73bdfbf3bca6fbfe9939e307775279da91 (diff)
downloadelgg-52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336.tar.gz
elgg-52f2f64c6bdd79bb8eca3a8c0bd8108e012d9336.tar.bz2
Fixes #4111 guid is now an int
Diffstat (limited to 'engine/classes/ElggObject.php')
-rw-r--r--engine/classes/ElggObject.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/classes/ElggObject.php b/engine/classes/ElggObject.php
index caccfb038..0b8340697 100644
--- a/engine/classes/ElggObject.php
+++ b/engine/classes/ElggObject.php
@@ -110,7 +110,7 @@ class ElggObject extends ElggEntity {
$row = get_object_entity_as_row($guid);
if (($row) && (!$this->isFullyLoaded())) {
// If $row isn't a cached copy then increment the counter
- $this->attributes['tables_loaded'] ++;
+ $this->attributes['tables_loaded']++;
}
// Now put these into the attributes array as core values
@@ -119,6 +119,9 @@ class ElggObject extends ElggEntity {
$this->attributes[$key] = $value;
}
+ // guid needs to be an int http://trac.elgg.org/ticket/4111
+ $this->attributes['guid'] = (int)$this->attributes['guid'];
+
return true;
}