Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller. Merged from MOODLE_17_STABLE.

This commit is contained in:
tjhunt
2007-02-20 15:18:22 +00:00
parent b74a216ad1
commit 1c63d8955d
+1
View File
@@ -156,6 +156,7 @@
if (! $category = get_record('question_categories', 'id', $categoryid)) {
error('Category ID is incorrect');
}
$category->name = addslashes($category->name);
// find existing random questions in this category
$random = RANDOM;
if ($existingquestions = get_records_select('question', "qtype = '$random' AND category = '$category->id'")) {