Fixed call to implode() in display_error_and_exit() to avoid deprecation warning.

This commit is contained in:
Alannah Kearney 2020-04-11 18:51:09 +10:00
commit 630efc99d6

View file

@ -201,7 +201,7 @@ if (!function_exists(__NAMESPACE__."\display_error_and_exit")) {
"\r\n%s\r\n%s\r\n%s\r\n%s", "\r\n%s\r\n%s\r\n%s\r\n%s",
$emptyLine, $emptyLine,
$add_background($heading, true), $add_background($heading, true),
implode($message, PHP_EOL), implode(PHP_EOL, $message),
!empty($trace) && count($trace) > 0 !empty($trace) && count($trace) > 0
? PHP_EOL.sprintf("Trace\r\n==========\r\n%s\r\n", Debug\readable_debug_backtrace($trace)) ? PHP_EOL.sprintf("Trace\r\n==========\r\n%s\r\n", Debug\readable_debug_backtrace($trace))
: '' : ''