From 19ad3abdacc596baef6adeadcf89399f01a94ed0 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Tue, 13 May 2014 21:52:40 +0200 Subject: [PATCH] bugfix: in_groups undefined --- index.php | 2 +- js/dom-functions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index f4dfb73..721ac0b 100644 --- a/index.php +++ b/index.php @@ -297,7 +297,7 @@ if($usehistorypushstate) { - + diff --git a/js/dom-functions.js b/js/dom-functions.js index 5edda5a..791ec5e 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -1167,7 +1167,7 @@ function showConversation(qid) { // in-groups html var in_groups_html = ''; - if(obj.statusnet_in_groups !== false) { + if(obj.statusnet_in_groups !== false && typeof obj.statusnet_in_groups != 'undefined') { in_groups_html = '' + obj.statusnet_in_groups + ''; } @@ -1622,7 +1622,7 @@ function addToFeed(feed, after, extraClasses) { // in-groups html var in_groups_html = ''; - if(obj.statusnet_in_groups !== false) { + if(obj.statusnet_in_groups !== false && typeof obj.statusnet_in_groups != 'undefined') { in_groups_html = '' + obj.statusnet_in_groups + ''; }