From 2e55209603311c734e5a69dae31f4671e8cf121b Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 5 Dec 2017 11:14:40 +0800 Subject: [PATCH] MDL-60965 behat: Correct strlen use --- admin/tool/behat/cli/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/tool/behat/cli/util.php b/admin/tool/behat/cli/util.php index 8efa4ed955b..e88125bbcb5 100644 --- a/admin/tool/behat/cli/util.php +++ b/admin/tool/behat/cli/util.php @@ -398,7 +398,7 @@ function print_combined_install_output($processes) { // Show process name in first row. foreach ($processes as $name => $process) { // If we don't have enough space to show full run name then show runX. - if ($lengthofprocessline < strlen($name + 2)) { + if ($lengthofprocessline < strlen($name) + 2) { $name = substr($name, -5); } // One extra padding as we are adding | separator for rest of the data.