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:21 +01:00
parent 7b003c04a8
commit f4fb91aecb
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));
}
/**