fix method
This commit is contained in:
1 parent
4de0b199ff
commit
e795fe3daf
1 file changed
+3
-1
@@ -11,6 +11,8 @@ class CAPI {
|
|||||||
public static function getUserInfo() {
|
public static function getUserInfo() {
|
||||||
global $USER;
|
global $USER;
|
||||||
unset($USER['password']);
|
unset($USER['password']);
|
||||||
return $USER;
|
$result = $USER;
|
||||||
|
$result['devices'] = getUserDevices($USER['id']);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user