]> git.mjollnir.org Git - moodle.git/commitdiff
Don't use stripslashes on data coming from database
authorgustav_delius <gustav_delius>
Sat, 7 Oct 2006 17:18:15 +0000 (17:18 +0000)
committergustav_delius <gustav_delius>
Sat, 7 Oct 2006 17:18:15 +0000 (17:18 +0000)
blog/edit.php

index 16bd106803183b9b6075c6c803a2a1b3c07f8c84..ec67d0d62c25de329f53d10c5ce28e4cdfa1c755 100755 (executable)
@@ -255,12 +255,12 @@ function add_tags_info($postid) {
     $tag = new object();
     $tag->entryid = $post->id;
     $tag->userid = $post->userid;
-    $tag->timemodified = time();
-
-    /// Add tags information
-    if ($otags = optional_param('otags','', PARAM_INT)) {
-        foreach ($otags as $otag) {
-            $tag->tagid = $otag;
+        $tag->timemodified = time();
+        
+        /// Add tags information
+        if ($otags = optional_param('otags','', PARAM_INT)) {
+            foreach ($otags as $otag) {
+                $tag->tagid = $otag;
             insert_record('blog_tag_instance', $tag);
         }
     }