|
@@ -19,11 +19,15 @@ class Notify extends Api
|
|
$input = file_get_contents("php://input");
|
|
$input = file_get_contents("php://input");
|
|
if ($input) {
|
|
if ($input) {
|
|
$input = json_decode($input, true);
|
|
$input = json_decode($input, true);
|
|
- if (isset($input['s'])) {
|
|
|
|
- unset($input['s']);
|
|
|
|
- }
|
|
|
|
- if (isset($input['l'])) {
|
|
|
|
- unset($input['l']);
|
|
|
|
|
|
+ if (is_array($input)) {
|
|
|
|
+ if (isset($input['s'])) {
|
|
|
|
+ unset($input['s']);
|
|
|
|
+ }
|
|
|
|
+ if (isset($input['l'])) {
|
|
|
|
+ unset($input['l']);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $this->error('error');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|