Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -163,9 +163,21 @@ class _Upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$supportAccount = \IPS\Member::load( 'nobody@invisionpower.com', 'email' );
|
||||
$isNobody = FALSE;
|
||||
$supportAccount = \IPS\Member::load( 'ipstempadmin@invisionpower.com', 'email' );
|
||||
if ( !$supportAccount->member_id )
|
||||
{
|
||||
$supportAccount = \IPS\Member::load( 'nobody@invisionpower.com', 'email' );
|
||||
$isNobody = TRUE;
|
||||
}
|
||||
|
||||
if ( $supportAccount->member_id )
|
||||
{
|
||||
if ( $isNobody )
|
||||
{
|
||||
$supportAccount->email = 'ipstempadmin@invisionpower.com';
|
||||
}
|
||||
|
||||
$supportAccount->members_bitoptions['is_support_account'] = TRUE;
|
||||
$supportAccount->save();
|
||||
|
||||
|
||||
Reference in new issue
Block a user