]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - api/users.php
Add search bar to navbar
[irc/unrealircd/unrealircd-webpanel.git] / api / users.php
index f516f12a719f48b2a9166d2da3b97869a52ce39d..a5b9bb12ffc09cd5600bf422a866bcbf048cc8eb 100644 (file)
@@ -2,7 +2,9 @@
 
 define('NO_EVENT_STREAM_HEADER',1);
 require_once('common_api.php');
-header("Content-type: application/json; charset=utf-8");
+
+if (!$rpc)
+       die(json_encode([]));
 
 /* Get the user list */
 $users = $rpc->user()->getAll();