]> git.mjollnir.org Git - moodle.git/commitdiff
datalib: get_courses_search() remove dead code
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:09:01 +0000 (07:09 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:09:01 +0000 (07:09 +0000)
lib/datalib.php

index 7be82811665aa134076a17b5cd3a6e39f07fd5e1..2d82f6e1454944e0e5b3713d5c3f0266ccb5978e 100644 (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