summaryrefslogtreecommitdiff
path: root/timelinejs.module
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-10-23 19:01:43 -0200
committerSilvio <silvio@socioambiental.org>2012-10-23 19:01:43 -0200
commitcfb20b47f93b94515cf9d02b1e887a8bbb7d8f15 (patch)
tree0960b7c48aec6ddcbef5e53ec78d7c21cc9867b5 /timelinejs.module
parentb12dc9b5e112b0913ce0ecd1c44116f270a410af (diff)
downloadtimelinejs-cfb20b47f93b94515cf9d02b1e887a8bbb7d8f15.tar.gz
timelinejs-cfb20b47f93b94515cf9d02b1e887a8bbb7d8f15.tar.bz2
Minor fixes
Diffstat (limited to 'timelinejs.module')
-rw-r--r--timelinejs.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module
index 9ca1985..3c3f6a1 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -109,6 +109,10 @@ function timelinejs_fetch_items($nid, $format = 'json') {
}
foreach ($items as $event) {
+ if (!isset($event->body['und'])) {
+ $event->body['und'] = NULL;
+ }
+
$output[] = theme('timelinejs_'. $format .'_event', array('event' => $event));
if ($format == 'json') {
$events = implode(',', $output);