MDL-66074 mod_forum: fix SQL whitespace causing oracle to fail
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 30 Oct 2019 18:19:12 +0000 (19:19 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 30 Oct 2019 18:19:12 +0000 (19:19 +0100)
mod/forum/lib.php

index fbc1f18..8294df5 100644 (file)
@@ -777,7 +777,7 @@ EOF;
         ];
 
         if ($userid) {
-            $sql .= "AND g.userid = :userid";
+            $sql .= " AND g.userid = :userid";
             $params['userid'] = $userid;
         }