[ticket/16766] Restructure conditional

PHPBB3-16766
This commit is contained in:
Patrick Webster 2021-04-27 18:00:08 -05:00
parent 1f76aa65f3
commit 31fc85153e

View file

@ -57,7 +57,7 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
}
// If the message handler is stripping text, fallback to the long version if available
if (isset($msg_long_text) && $msg_long_text && !$msg_text)
if (!$msg_text && !empty($msg_long_text))
{
$msg_text = $msg_long_text;
}