mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-31 15:25:39 +02:00
Cast Number settings as integer instead of float
This commit is contained in:
parent
5db549fe5e
commit
6fab74368f
@ -86,7 +86,7 @@ class AppstractOptionsService implements SettingServiceInterface
|
|||||||
*/
|
*/
|
||||||
private function restoreType($value)
|
private function restoreType($value)
|
||||||
{
|
{
|
||||||
$value = is_numeric($value) ? (float) $value : $value;
|
$value = is_numeric($value) ? (int) $value : $value;
|
||||||
|
|
||||||
if( $value === '{{}}' ) {
|
if( $value === '{{}}' ) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user