Skip to content

Commit

Permalink
Adjust empty() usage for PHP version compatibility (#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed Jul 7, 2020
1 parent 3061027 commit 548b694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/resources/upgrade50.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function upgrade50_submit_email()
{
global $output, $db, $mybb, $cache, $errors, $checked;

if(empty($mybb->get_input('usepresetemail')) || !in_array($mybb->input['usepresetemail'], array('current_user', 'smtp', 'custom')))
if(empty($mybb->input['usepresetemail']) || !in_array($mybb->input['usepresetemail'], array('current_user', 'smtp', 'custom')))
{
$errors[] = "Please select an option for the admin email.";
}
Expand Down

0 comments on commit 548b694

Please sign in to comment.