MDL-63371 question: USE_RAW_DATA case in check_qt_var_name_restrictions

This commit is contained in:
Tim Hunt
2018-09-14 16:44:31 +01:00
parent 9c1fc95578
commit 8f95b79590
+1 -1
View File
@@ -1184,7 +1184,7 @@ class question_attempt {
protected function check_qt_var_name_restrictions($expected) {
global $CFG;
if ($CFG->debugdeveloper) {
if ($CFG->debugdeveloper && $expected !== self::USE_RAW_DATA) {
foreach ($expected as $key => $value) {
if (strpos($key, 'bf_') !== false) {
debugging('The bf_ prefix is reserved and cannot be used by question types', DEBUG_DEVELOPER);