MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code
This commit is contained in:
@@ -295,6 +295,8 @@ if (!$rid){
|
||||
******************************************/
|
||||
if ($data->addtemplate){
|
||||
$possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id');
|
||||
$patterns = array();
|
||||
$replacements = array();
|
||||
|
||||
///then we generate strings to replace
|
||||
foreach ($possiblefields as $eachfield){
|
||||
|
||||
Reference in New Issue
Block a user