mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Small SQL fix. Removed unneeded WHERE clause
This commit is contained in:
parent
e69c04db5a
commit
e521770c84
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue