MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code

This commit is contained in:
Eloy Lafuente (stronk7)
2012-03-07 01:58:11 +01:00
parent 539c7ca148
commit 6cedce9d6b
+2
View File
@@ -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){