Skip to content
Snippets Groups Projects
Unverified Commit 111ed029 authored by Edmund Farrow's avatar Edmund Farrow Committed by GitHub
Browse files

Update parsons.block.php

Added some brackets in a string concatenation as unit tests were throwing a warning about changes for PHP8
parent b53f5102
Branches
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block { ...@@ -263,7 +263,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
// If rows and index are passed then the length of index should match the value of rows + 1 // If rows and index are passed then the length of index should match the value of rows + 1
if ($ogrows !== null) { if ($ogrows !== null) {
$code .= 'if (index !== undefined && index.length !== ' . $ogrows + 1 . ') $code .= 'if (index !== undefined && index.length !== ' . ($ogrows + 1) . ')
{stack_js.display_error("' . stack_string('stackBlock_incorrect_index_length') . '");}' . "\n"; {stack_js.display_error("' . stack_string('stackBlock_incorrect_index_length') . '");}' . "\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment