X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=jappixmini%2Fjappixmini.php;h=08d821128db7c34d3ce0507d2db4c40566ebf593;hb=3239c375fbd7fb00575d18ad793d280453df2e5b;hp=aedbffd0d0d4249999311904d7ad1470b061a058;hpb=b4dc70b48a6ed06491a5a3fce8f260913e6e0f76;p=friendica-addons.git diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index aedbffd0..08d82112 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -294,10 +294,14 @@ function jappixmini_settings(&$a, &$s) { $a->page['htmlhead'] .= ''."\r\n"; } - $s .= '
'; + $s .= ''; + $s .= '

'.t('Jappix Mini').'

'; + $s .= '
'; + $s .= ''; @@ -436,6 +439,9 @@ function jappixmini_script(&$a,&$s) { if(! local_user()) return; + if ($_GET["mode"] == "minimal") + return; + $activate = get_pconfig(local_user(),'jappixmini','activate'); $dontinsertchat = get_pconfig(local_user(), 'jappixmini','dontinsertchat'); if (!$activate or $dontinsertchat) return; @@ -482,7 +488,8 @@ function jappixmini_script(&$a,&$s) { dbesc($dfrn_id), dbesc($dfrn_id) ); - $name = $r[0]["name"]; + if (count($r)) + $name = $r[0]["name"]; $value = $row['v']; $pos = strpos($value, ":"); @@ -500,7 +507,7 @@ function jappixmini_script(&$a,&$s) { $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)){ + if(empty($groupchats)){ $groupchats = "{}"; }