fixed minor error when updating avi in settings

This commit is contained in:
Ro 2021-04-25 16:00:50 -07:00
parent c6f7c56f4a
commit 53fd1a47c5

View file

@ -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",