diff options
author | cash <cash.costello@gmail.com> | 2011-10-29 13:01:05 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-29 13:01:05 -0400 |
commit | e01240611f2a94d0a194235f2f83323049ad1a74 (patch) | |
tree | 311afd784f4c3e4f99dbfe5a06123d3fefb2842a /engine/classes/ElggRiverItem.php | |
parent | 96fa5ba183d4ea5fb01d4f5a44c808dcb3291b72 (diff) | |
download | elgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.gz elgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.bz2 |
Refs #3201 updates json river views and removed old search view
Diffstat (limited to 'engine/classes/ElggRiverItem.php')
-rw-r--r-- | engine/classes/ElggRiverItem.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/classes/ElggRiverItem.php b/engine/classes/ElggRiverItem.php index cdb22239d..fcc8f9c85 100644 --- a/engine/classes/ElggRiverItem.php +++ b/engine/classes/ElggRiverItem.php @@ -28,8 +28,14 @@ class ElggRiverItem // throw exception } + // the casting is to support typed serialization like json + $int_types = array('id', 'subject_guid', 'object_guid', 'annotation_id', 'access_id', 'posted'); foreach ($object as $key => $value) { - $this->$key = $value; + if (in_array($key, $int_types)) { + $this->$key = (int)$value; + } else { + $this->$key = $value; + } } } |