]> git.mjollnir.org Git - moodle.git/commitdiff
Small SQL fix. Removed unneeded WHERE clause
authorvyshane <vyshane>
Fri, 15 Sep 2006 03:18:59 +0000 (03:18 +0000)
committervyshane <vyshane>
Fri, 15 Sep 2006 03:18:59 +0000 (03:18 +0000)
lib/datalib.php

index c1425b8a73912a3ddf45c7e5cbbe81cfcc8dae63..b2de1936b1d4e101faf1c8917640576528e839f7 100644 (file)
@@ -581,7 +581,7 @@ function get_my_courses($userid, $sort='visible DESC,sortorder ASC') {
     global $CFG, $USER;
 
     $mycourses = array();
-    $SQL = "SELECT * from {$CFG->prefix}course WHERE 1 ORDER BY $sort";
+    $SQL = "SELECT * from {$CFG->prefix}course ORDER BY $sort";
     $courses = get_records_sql($SQL);
     
     foreach ($courses as $course) {