Merge branch 'MDL-77354-master' of https://github.com/HuongNV13/moodle

This commit is contained in:
Andrew Nicols 2023-02-23 10:49:09 +08:00
commit 7839d62111

View File

@ -360,7 +360,7 @@ function print_combined_drop_output($processes) {
$op = $process->getIncrementalOutput();
if (trim($op)) {
$update = preg_filter('#^\s*([FS\.\-]+)(?:\s+\d+)?\s*$#', '$1', $op);
$strlentoprint = strlen($update);
$strlentoprint = $update ? strlen($update) : 0;
// If not enough dots printed on line then just print.
if ($strlentoprint < $remainingprintlen) {