https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf704e
)
Fixed javascript syntax error in jappixmini due to empty variable
author
hauke
<hauke@grlg.org>
Thu, 10 Oct 2013 19:51:53 +0000
(21:51 +0200)
committer
hauke
<hauke@grlg.org>
Thu, 10 Oct 2013 19:51:53 +0000
(21:51 +0200)
jappixmini/jappixmini.php
patch
|
blob
|
history
diff --git
a/jappixmini/jappixmini.php
b/jappixmini/jappixmini.php
index
adbea67
..
ed7b68f
100644
(file)
--- 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'] .= "<script type=\"text/javascript\">