Skip to content

Commit

Permalink
Fix #87 bug with a non-numeric value encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Apr 9, 2024
1 parent c9e188e commit 9c341ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ protected function compile()
'thumbs_visibleAreaMax',
) as $key) {
if (! empty($this->arrData['rsts_' . $key]) && $this->arrData['rsts_' . $key] > 0) {
$options[$key] = $this->arrData['rsts_' . $key] * 1;
$options[$key] = (float) $this->arrData['rsts_' . $key];
}
}

Expand Down Expand Up @@ -365,7 +365,7 @@ protected function compile()
$options[$key] = $this->arrData['rsts_' . $key];
}
else {
$options[$key] = $this->arrData['rsts_' . $key] * 1;
$options[$key] = (float) $this->arrData['rsts_' . $key];
}
}
}
Expand Down

0 comments on commit 9c341ec

Please sign in to comment.