diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 2a3f57dd..d8b8ab7b 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -465,7 +465,7 @@ class UserController extends BaseAuthedController { return; } $userInfo = User::Info($userDb); - $heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userDb['hero_uniid']); + $heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_uniid']); if (!$heroDb) { $this->_rspErr(1, 'Hero does not exist'); return;