MDL-70920 core: prevent calls to call_user_fun_array() with assoc array

This commit is contained in:
Marina Glancy
2021-02-21 22:22:56 +01:00
parent acc72a1f00
commit 267fe07d4a
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -1237,7 +1237,7 @@ abstract class sql_generator {
}
// Now call the standard $DB->sql_concat() DML function
return call_user_func_array(array($this->mdb, 'sql_concat'), $elements);
return call_user_func_array(array($this->mdb, 'sql_concat'), array_values($elements));
}
/**