From a61f93901386f2fa00a70417de7fec608e05fc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 6 Jul 2016 10:09:08 -0500 Subject: [PATCH] Minor Fix to scorm time functionality - Refs #8211 --- main/lp/learnpathItem.class.php | 2 +- src/Chamilo/CourseBundle/Entity/CLp.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/lp/learnpathItem.class.php b/main/lp/learnpathItem.class.php index 8ec82f9824..d490f4dd5b 100755 --- a/main/lp/learnpathItem.class.php +++ b/main/lp/learnpathItem.class.php @@ -3630,7 +3630,7 @@ class learnpathItem $lp_table = Database::get_course_table(TABLE_LP_MAIN); $lp_id = intval($this->lp_id); $sql = "SELECT * FROM $lp_table - WHERE id = '$lp_id' AND c_id = $course_id"; + WHERE id = $lp_id AND c_id = $course_id"; $res = Database::query($sql); $accumulate_scorm_time = 'false'; if (Database::num_rows($res) > 0) { diff --git a/src/Chamilo/CourseBundle/Entity/CLp.php b/src/Chamilo/CourseBundle/Entity/CLp.php index 1b5d2fc059..c893f4d1ed 100644 --- a/src/Chamilo/CourseBundle/Entity/CLp.php +++ b/src/Chamilo/CourseBundle/Entity/CLp.php @@ -259,9 +259,9 @@ class CLp private $expiredOn; /** - * @var \DateTime + * @var string * - * @ORM\Column(name="accumulate_scorm_time", type="boolean", nullable=false) + * @ORM\Column(name="accumulate_scorm_time", type="string", length=5, nullable=false) */ private $accumulateScormTime; @@ -989,7 +989,7 @@ class CLp } /** - * @return boolean + * @return string */ public function getAccumulateScormTime() { @@ -997,7 +997,7 @@ class CLp } /** - * @param boolean $accumulateScormTime + * @param string $accumulateScormTime * @return CLp */ public function setAccumulateScormTime($accumulateScormTime)