MDL-11392 - Stupid bloody requirement to call addslashes between loading data from the database and saving it back, because we don't use placeholder. Was breaking question bank upgrade.

This commit is contained in:
tjhunt
2007-09-21 17:10:39 +00:00
parent 095b599a7f
commit 8cf0f100b8
+3 -1
View File
@@ -272,7 +272,9 @@ function question_upgrade_context_etc(){
/// update table contents with previously calculated new contents.
if ($question_categories){
foreach ($question_categories as $question_category){
foreach ($question_categories as $question_category) {
$question_category->name = addslashes($question_category->name);
$question_category->info = addslashes($question_category->info);
if (!$result = update_record('question_categories', $question_category)){
notify('Couldn\'t update question_categories "'. $question_category->name .'"!');
}