Skip to content

Commit 862cf6f

Browse files
committed
fix new user welcome message upgrade script
1 parent 95610ef commit 862cf6f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

install/upgrades/upgrade_newusermsg.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ function description()
5252
*/
5353
function needed()
5454
{
55-
$tmp = (empty(USER_REGISTRATION_WELCOME_MSG_HTML) && !empty(USER_REGISTRATION_WELCOME_MSG));
56-
$tmp1 = !defined('USER_REGISTRATION_WELCOME_MSG_HTML');
57-
return (!defined('USER_REGISTRATION_WELCOME_MSG_HTML') || (empty(USER_REGISTRATION_WELCOME_MSG_HTML) && !empty(USER_REGISTRATION_WELCOME_MSG)));
55+
return empty(USER_REGISTRATION_WELCOME_MSG_HTML);
5856
}
5957

6058
/**
@@ -66,7 +64,6 @@ function needed()
6664
function upgrade()
6765
{
6866
expSettings::change('USER_REGISTRATION_WELCOME_MSG_HTML', USER_REGISTRATION_WELCOME_MSG);
69-
7067
return gt('New User Welcome Message was Upgraded.');
7168
}
7269
}

0 commit comments

Comments
 (0)