Merged from MOODLE_14_STABLE: Fixes in datalib and backuplib for postgres invalid sql

This commit is contained in:
mjollnir_
2004-11-22 04:24:30 +00:00
parent a967637614
commit b565bbdfe2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2029,7 +2029,7 @@ function get_courses_page($categoryid="all", $sort="c.sortorder ASC", $fields="c
global $USER, $CFG;
$categoryselect = "";
if ($categoryid != "all") {
if ($categoryid != "all" && is_numeric($categoryid)) {
$categoryselect = "c.category = '$categoryid'";
}