From: stronk7 Date: Tue, 10 Jun 2003 17:27:08 +0000 (+0000) Subject: Need to addslashes before put summary section data to db !!! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d223ada029c498c4ad4b3a4b9c04c942e6cd1f9f;p=moodle.git Need to addslashes before put summary section data to db !!! Now restoring sections is working. User restoring failed !! -> Too much records !! --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 5049a92b1a..4d31cac86d 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -323,7 +323,7 @@ $sequence = ""; $section->course = $restore->course_id; $section->section = $sect->number; - $section->summary = $sect->summary; + $section->summary = addslashes($sect->summary); $section->visible = $sect->visible; $section->sequence = ""; //Now calculate the section's newid