Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ther global scope code
  • Loading branch information...
commit 49b4703187e2a4e546f29c09eb996834da76f1c7 1 parent 0736188
@stronk7 stronk7 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  mod/data/edit.php
View
2  mod/data/edit.php
@@ -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){
Please sign in to comment.
Something went wrong with that request. Please try again.