]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11392 - Stupid bloody requirement to call addslashes between loading data from...
authortjhunt <tjhunt>
Fri, 21 Sep 2007 17:10:39 +0000 (17:10 +0000)
committertjhunt <tjhunt>
Fri, 21 Sep 2007 17:10:39 +0000 (17:10 +0000)
question/upgrade.php

index 5095db43e6139f76eee91a69eb420d067cfb0918..8988e979c569388e68eba7e23f9877f2845b4a4f 100644 (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 .'"!');
             }