summaryrefslogtreecommitdiff
path: root/includes/controller/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/controller/api.php')
-rw-r--r--includes/controller/api.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/controller/api.php b/includes/controller/api.php
index 35c23cb5..3c87e5b4 100644
--- a/includes/controller/api.php
+++ b/includes/controller/api.php
@@ -45,7 +45,7 @@ getRoom
Parameters:
id (integer) - Room ID
Return Example:
- [{"RID":"1"},{"RID":"2"},{"RID":"3"},{"RID":"4"}]
+ [{"RID":"1"},{"RID":"23"},{"RID":"42"}]
{"RID":"1","Name":"Room Name","Man":null,"FromPentabarf":"","show":"Y","Number":"0"}
getAngelType
@@ -184,6 +184,10 @@ function api_controller() {
$DataJson = array (
'status' => 'failed',
'error' => 'DataJson === false' );
+ } elseif( $DataJson == null) {
+ $DataJson = array (
+ 'status' => 'failed',
+ 'error' => 'DataJson == null' );
}
echo json_encode($DataJson);
@@ -334,4 +338,4 @@ function sendMessage(){
}
}
-?> \ No newline at end of file
+?>