Permalink
Browse files

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

…ther global scope code
  • Loading branch information...
1 parent 0736188 commit 49b4703187e2a4e546f29c09eb996834da76f1c7 @stronk7 stronk7 committed Mar 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/data/edit.php
View
@@ -295,6 +295,8 @@
******************************************/
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){

0 comments on commit 49b4703

Please sign in to comment.