datalib: get_courses_search() remove dead code

This commit is contained in:
martinlanghoff
2007-09-19 07:09:01 +00:00
parent 026579bbc3
commit 8fe9c4de51
-2
View File
@@ -805,8 +805,6 @@ function get_courses_search($searchterms, $sort='fullname ASC', $page=0, $record
}
$selectsql = $CFG->prefix .'course WHERE ('. $fullnamesearch .' OR '. $summarysearch .') AND category > \'0\'';
$sql = "SELECT c.*,
ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth as ctxdepth
FROM {$CFG->prefix}course c