mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +02:00
Fix PHP8 deprecation notice in InputfieldInteger
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user