!isset() check stopped working, empty() might be the better choice anyway
authorhauke <hauke@grlg.org>
Mon, 28 Oct 2013 21:47:48 +0000 (22:47 +0100)
committerhauke <hauke@grlg.org>
Mon, 28 Oct 2013 21:47:48 +0000 (22:47 +0100)
jappixmini/jappixmini.php

index aedbffd..5f5c53e 100644 (file)
@@ -500,7 +500,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 = "{}";
     }