Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Eloy Lafuente (stronk7) stronk7 authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  mod/data/edit.php
2  mod/data/edit.php
@@ -295,6 +295,8 @@
295 295 ******************************************/
296 296 if ($data->addtemplate){
297 297 $possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id');
  298 + $patterns = array();
  299 + $replacements = array();
298 300
299 301 ///then we generate strings to replace
300 302 foreach ($possiblefields as $eachfield){

0 comments on commit 49b4703

Please sign in to comment.
Something went wrong with that request. Please try again.