diff options
-rwxr-xr-x | bin/jsonapi.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php index ffcc9e6..dcc3dd4 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -77,7 +77,10 @@ function stopBroadcast($session) { $ret = array(); - $ret = sessiondelete("session" .$session); + if ($session == "all") + $ret = sessiondelete($session); + else + $ret = sessiondelete("session" .$session); return json_encode($ret); } |