Skip to content

Commit

Permalink
Remove duplicated if
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Dec 8, 2024
1 parent 875c3ed commit 9431afd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions application/modules/training/views/index/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@
<div class="col-xl-3"><?=$this->getTrans('periodEntry') ?></div>
<div class="col-xl-9">
<?php
if ($training->getPeriodType()) {
echo $periodTypes[$training->getPeriodType()];
if ($training->getPeriodType() != 'days') {
echo ' (x ' . $training->getPeriodDay() . ')';
} else {
echo ' (' . $periodDays[$training->getPeriodDay()] . ')';
}
echo $periodTypes[$training->getPeriodType()];
if ($training->getPeriodType() != 'days') {
echo ' (x ' . $training->getPeriodDay() . ')';
} else {
echo ' (' . $periodDays[$training->getPeriodDay()] . ')';
}
?>
</div>
Expand Down

0 comments on commit 9431afd

Please sign in to comment.