From bef3712dc63cc0b68b344f04129012e5eaedf23d Mon Sep 17 00:00:00 2001
From: Didier 'OdyX' Raboud <didier.raboud@liip.ch>
Date: Thu, 10 Jun 2021 08:28:29 +0200
Subject: [PATCH] Fix SQL values' quoting, to fix module backup under
 PostgreSQL

---
 backup/moodle2/backup_pdfannotator_stepslib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backup/moodle2/backup_pdfannotator_stepslib.php b/backup/moodle2/backup_pdfannotator_stepslib.php
index bf3de9f..73f5b90 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.
-- 
GitLab