From 11179e37b1851db9e973ae4fa014f8c70743f54a Mon Sep 17 00:00:00 2001 From: hauke Date: Thu, 10 Oct 2013 21:51:53 +0200 Subject: [PATCH 1/2] Fixed javascript syntax error in jappixmini due to empty variable --- jappixmini/jappixmini.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index adbea6755..ed7b68f82 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'] .= "