fixed minor error when updating avi in settings

beta
Ro 4 years ago
parent c6f7c56f4a
commit 53fd1a47c5

@ -123,7 +123,13 @@ class APIControl
case "settings":
$token = $request->getHeader("fipamo-access-token");
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 {
$result = [
"message" => "API access denied, homie",

Loading…
Cancel
Save