mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix type error if extra_vars does not unserialize into an object #2591
This commit is contained in:
parent
b00f956d6b
commit
316cfc43b0
1 changed files with 4 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ class MemberAdminController extends Member
|
|||
{
|
||||
$output = executeQuery('member.getMemberInfoByMemberSrl', ['member_srl' => $args->member_srl], ['extra_vars']);
|
||||
$extra_vars = ($output->data && $output->data->extra_vars) ? unserialize($output->data->extra_vars) : new stdClass;
|
||||
if (!is_object($extra_vars))
|
||||
{
|
||||
$extra_vars = new stdClass;
|
||||
}
|
||||
foreach(self::NOUSE_EXTRA_VARS as $key)
|
||||
{
|
||||
unset($extra_vars->$key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue