diff --git a/backup/moodle2/backup_pdfannotator_stepslib.php b/backup/moodle2/backup_pdfannotator_stepslib.php index bf3de9fd21f6c6b330d17cb0a3262f6829c2a7c7..73f5b90397a23ff8895c2367a0d4dc9579c51d01 100644 --- a/backup/moodle2/backup_pdfannotator_stepslib.php +++ b/backup/moodle2/backup_pdfannotator_stepslib.php @@ -97,7 +97,7 @@ class backup_pdfannotator_activity_structure_step extends backup_activity_struct // Add all annotations specific to this annotator instance. $annotation->set_source_sql('SELECT a.* FROM {pdfannotator_annotations} a ' . 'JOIN {pdfannotator_comments} c ON a.id = c.annotationid ' - . 'WHERE a.pdfannotatorid = ? AND c.isquestion = "1" AND (c.visibility = "public" OR c.visibility = "anonymous") ', + . "WHERE a.pdfannotatorid = ? AND c.isquestion = 1 AND (c.visibility = 'public' OR c.visibility = 'anonymous') ", array('pdfannotatorid' => backup::VAR_PARENTID)); // Add any subscriptions to this annotation.