From f01061c98dd10b7b5840bb12c0a7842d0bdce1cb Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 24 Jun 2020 10:56:48 +0200 Subject: [PATCH] Minor - format code --- main/exercise/unique_answer.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/exercise/unique_answer.class.php b/main/exercise/unique_answer.class.php index 8a0821bd8b..256a9a96cf 100755 --- a/main/exercise/unique_answer.class.php +++ b/main/exercise/unique_answer.class.php @@ -236,9 +236,7 @@ class UniqueAnswer extends Question global $text; $buttonGroup = []; - if ($obj_ex->edit_exercise_in_lp == true || - (empty($this->exerciseList) && empty($obj_ex->id)) - ) { + if (true === $obj_ex->edit_exercise_in_lp || (empty($this->exerciseList) && empty($obj_ex->id))) { //setting the save button here and not in the question class.php $buttonGroup[] = $form->addButtonDelete(get_lang('LessAnswer'), 'lessAnswers', true); $buttonGroup[] = $form->addButtonCreate(get_lang('PlusAnswer'), 'moreAnswers', true);