From: hauke Date: Thu, 10 Oct 2013 19:51:53 +0000 (+0200) Subject: Fixed javascript syntax error in jappixmini due to empty variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11179e37b1851db9e973ae4fa014f8c70743f54a;p=friendica-addons.git Fixed javascript syntax error in jappixmini due to empty variable --- diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index adbea675..ed7b68f8 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -499,6 +499,10 @@ function jappixmini_script(&$a,&$s) { $r = q("SELECT `username` FROM `user` WHERE `uid`=$uid"); $nickname = json_encode($r[0]["username"]); $groupchats = get_config('jappixmini','groupchats'); + //if $groupchats has no value jappix_addon_start will have an sytax error + if(!isset($groupchats)){ + $groupchats = "{}"; + } // add javascript to start Jappix Mini $a->page['htmlhead'] .= "