Fix #109.
This commit is contained in:
@@ -67,7 +67,7 @@ function check_account_invite($invite_code) {
|
||||
$result['message'] .= t('An invitation is required.') . EOL;
|
||||
}
|
||||
$r = q("select * from register where `hash` = '%s' limit 1", dbesc($invite_code));
|
||||
if(! results($r)) {
|
||||
if(! $r) {
|
||||
$result['message'] .= t('Invitation could not be verified.') . EOL;
|
||||
}
|
||||
}
|
||||
@@ -718,4 +718,4 @@ function upgrade_message($bbcode = false) {
|
||||
function upgrade_bool_message($bbcode = false) {
|
||||
$x = upgrade_link($bbcode);
|
||||
return t('This action is not available under your subscription plan.') . (($x) ? ' ' . $x : '') ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user