diff --git a/main/exercise/answer.class.php b/main/exercise/answer.class.php index 1154084cc1..99279cae48 100755 --- a/main/exercise/answer.class.php +++ b/main/exercise/answer.class.php @@ -34,7 +34,7 @@ class Answer public $new_position; public $new_hotspot_coordinates; public $new_hotspot_type; - /** @var int Incremental ID used in the past when PK was a mix of c_id+id*/ + /** @var int Incremental ID used in the past when PK was a mix of c_id+id */ public $autoId; /** @var int Number of answers in the question */ public $nbrAnswers; @@ -394,6 +394,7 @@ class Answer * @param int $auto_id * * @return array + * * @todo Replace method by iid search */ public function selectAnswerByAutoId($auto_id) diff --git a/main/exercise/calculated_answer.class.php b/main/exercise/calculated_answer.class.php index eaca2d34f9..7efa10802a 100644 --- a/main/exercise/calculated_answer.class.php +++ b/main/exercise/calculated_answer.class.php @@ -190,7 +190,7 @@ class CalculatedAnswer extends Question $table, [ 'question_id = ?' => [ - $this->iid + $this->iid, ], ] );