ソースを参照

Fix query bug in learnpathItem::write_to_db()

Yannick Warnier 10 年 前
コミット
a667212d82
1 ファイル変更1 行追加1 行削除
  1. 1 1
      main/newscorm/learnpathItem.class.php

+ 1 - 1
main/newscorm/learnpathItem.class.php

@@ -4052,7 +4052,7 @@ class learnpathItem
                                     lesson_location = '" . $this->lesson_location . "'
                                     lesson_location = '" . $this->lesson_location . "'
                                 WHERE
                                 WHERE
                                     c_id = $course_id AND
                                     c_id = $course_id AND
-                                    lp_item_id = " . $this->db_id . "AND
+                                    lp_item_id = " . $this->db_id . " AND
                                     lp_view_id = " . $this->view_id . "  AND
                                     lp_view_id = " . $this->view_id . "  AND
                                     view_count = " . $this->get_attempt_id();
                                     view_count = " . $this->get_attempt_id();