diff --git a/getallattempts.php b/getallattempts.php index 1fa12715..c64da16a 100644 --- a/getallattempts.php +++ b/getallattempts.php @@ -141,8 +141,8 @@ function export_class_instance($exportclass = null) { JOIN {quiz_slots} slot ON qatt.slot = slot.slot AND slot.quizid = quiza.quiz"; $where = "quiza.preview = 0 - AND (qasd.name NOT LIKE '-_%' OR qasd.name = '-_rawfraction') - AND (qasd.name NOT LIKE '^_%' OR qasd.name = '_testoutcome') + AND (qasd.name NOT LIKE '-\_%' OR qasd.name = '-_rawfraction') + AND (qasd.name NOT LIKE '\_%' OR qasd.name = '_testoutcome') AND quest.length > 0 ORDER BY quiza.uniqueid, timestamp";