aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-29 13:01:05 -0400
committercash <cash.costello@gmail.com>2011-10-29 13:01:05 -0400
commite01240611f2a94d0a194235f2f83323049ad1a74 (patch)
tree311afd784f4c3e4f99dbfe5a06123d3fefb2842a /engine
parent96fa5ba183d4ea5fb01d4f5a44c808dcb3291b72 (diff)
downloadelgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.gz
elgg-e01240611f2a94d0a194235f2f83323049ad1a74.tar.bz2
Refs #3201 updates json river views and removed old search view
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggRiverItem.php8
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;
+ }
}
}