Skip to content

Commit

Permalink
Updated to absolute if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bcordis committed Oct 5, 2024
1 parent a1af1df commit cdaa983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/tmpl/cwmsermons/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
echo $this->loadTemplate('formheader');
if ($this->params->get('sermonstemplate')) {
echo $this->loadTemplate($this->params->get('sermonstemplate'));
} elseif ($this->params->get('simple_mode') == 1) {
if ($this->params->get('simple_mode_template') == 'simple_mode1') {
} elseif ((int)$this->params->get('simple_mode') === 1) {
if ($this->params->get('simple_mode_template') === 'simple_mode1') {
echo $this->loadTemplate('simple');
}
if ($this->params->get('simple_mode_template') == 'simple_mode2') {
if ($this->params->get('simple_mode_template') === 'simple_mode2') {
echo $this->loadTemplate('simple2');
}
} else {
Expand Down

0 comments on commit cdaa983

Please sign in to comment.