API at home fix

This commit is contained in:
JonatanRek 2020-03-17 09:17:01 +01:00
parent 3feeaab086
commit b2a8734ed3

View File

@ -49,7 +49,7 @@ if (API_DEBUGMOD == 1) {
if (isset($obj['user']) && $obj['user'] != ''){
//user at home
$user = UserManager::getUser($obj['user']);
$userAtHome = $user['atHome'];
$userAtHome = $user['at_home'];
if (!empty($user)) {
$userId = $user['user_id'];
$atHome = $obj['atHome'];