From ec2777432d399875692d62d7c8b415aa48ec0ee4 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 29 Sep 2023 07:59:34 -0400 Subject: [PATCH] Fix PHP8 deprecation notice in InputfieldInteger --- wire/modules/Inputfield/InputfieldInteger.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Inputfield/InputfieldInteger.module b/wire/modules/Inputfield/InputfieldInteger.module index 77130409..dc7f5c88 100644 --- a/wire/modules/Inputfield/InputfieldInteger.module +++ b/wire/modules/Inputfield/InputfieldInteger.module @@ -70,7 +70,7 @@ class InputfieldInteger extends Inputfield { } else { // input[type=number] unset any that aren't applicable foreach(array('min', 'max', 'step') as $name) { - if(!strlen((string) $attrs[$name])) unset($attrs[$name]); + if(isset($attrs[$name]) && !strlen((string) $attrs[$name])) unset($attrs[$name]); } }