mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-08 22:49:25 +01:00
Cast Number settings as integer instead of float
This commit is contained in:
parent
5db549fe5e
commit
6fab74368f
@ -86,7 +86,7 @@ private function replaceBoolean($value)
|
|||||||
*/
|
*/
|
||||||
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…
Reference in New Issue
Block a user