mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 13:01:26 +02:00
Add suggestion from processwire/processwire-issues#1050
This commit is contained in:
@@ -175,7 +175,7 @@ class InputfieldToggle extends Inputfield {
|
||||
return $value ? self::valueYes : self::valueNo;
|
||||
}
|
||||
|
||||
$intValue = strlen("$value") && ctype_digit("$value") ? (int) $value : '';
|
||||
$intValue = strlen("$value") && ctype_digit("$value") ? (int) "$value" : '';
|
||||
$strValue = strtolower("$value");
|
||||
|
||||
if($this->hasCustomOptions()) {
|
||||
|
Reference in New Issue
Block a user