summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/jsonapi.php5
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);
}