diff --git a/main/exercise/question.class.php b/main/exercise/question.class.php index e8b8c04286..60666be675 100755 --- a/main/exercise/question.class.php +++ b/main/exercise/question.class.php @@ -1495,7 +1495,9 @@ abstract class Question LOG_QUESTION_ID, $this->iid ); - $this->removePicture(); + if ($deletePicture) { + $this->removePicture(); + } } else { // just removes the exercise from the list $this->removeFromList($deleteFromEx, $courseId);