forked from projects/fipamo
fixed minor error when updating avi in settings
This commit is contained in:
parent
c6f7c56f4a
commit
53fd1a47c5
1 changed files with 7 additions and 1 deletions
|
@ -123,7 +123,13 @@ class APIControl
|
||||||
case "settings":
|
case "settings":
|
||||||
$token = $request->getHeader("fipamo-access-token");
|
$token = $request->getHeader("fipamo-access-token");
|
||||||
if (Session::verifyToken($token[0])) {
|
if (Session::verifyToken($token[0])) {
|
||||||
$result = SettingsAPI::handleSettingsTask($request, $args, $body);
|
if (isset($body)) {
|
||||||
|
$postBody = $body;
|
||||||
|
} else {
|
||||||
|
$postBody = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$result = SettingsAPI::handleSettingsTask($request, $args, $postBody);
|
||||||
} else {
|
} else {
|
||||||
$result = [
|
$result = [
|
||||||
"message" => "API access denied, homie",
|
"message" => "API access denied, homie",
|
||||||
|
|
Loading…
Reference in a new issue