MDL-29496 course search - emergency regression fix
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 19 Oct 2011 22:33:30 +0000 (00:33 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 19 Oct 2011 22:49:02 +0000 (00:49 +0200)
lib/datalib.php

index 0330604..3e31ee2 100644 (file)
@@ -717,7 +717,7 @@ function get_courses_search($searchterms, $sort='fullname ASC', $page=0, $record
     $params     = array();
     $i = 0;
 
-    $concat = $DB->sql_concat("COALESCE(c.summary, ". $DB->sql_empty() .")", "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
+    $concat = $DB->sql_concat("COALESCE(c.summary, '". $DB->sql_empty() ."')", "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
 
     foreach ($searchterms as $searchterm) {
         $i++;