MDL-29496 course search - emergency regression fix

This commit is contained in:
Eloy Lafuente (stronk7) 2011-10-20 00:33:30 +02:00
parent 401d480d81
commit 3cb206f575

View File

@ -717,7 +717,7 @@ function get_courses_search($searchterms, $sort='fullname ASC', $page=0, $record
$params = array(); $params = array();
$i = 0; $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) { foreach ($searchterms as $searchterm) {
$i++; $i++;