mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 16:03:15 +00:00
Merge pull request #156 from tugelbend/master
Fix: Unset $groupchats variable in jappixmini produces syntax error
This commit is contained in:
commit
f6aba92f53
1 changed files with 4 additions and 0 deletions
|
@ -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 produce a syntax error
|
||||
if(!isset($groupchats)){
|
||||
$groupchats = "{}";
|
||||
}
|
||||
|
||||
// add javascript to start Jappix Mini
|
||||
$a->page['htmlhead'] .= "<script type=\"text/javascript\">
|
||||
|
|
Loading…
Reference in a new issue