1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 05:21:29 +02:00
This commit is contained in:
Ryan Cramer
2019-12-20 11:59:59 -05:00
parent 8762b7a77a
commit 6bae4780f0

View File

@@ -175,7 +175,7 @@ class InputfieldToggle extends Inputfield {
return $value ? self::valueYes : self::valueNo; 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"); $strValue = strtolower("$value");
if($this->hasCustomOptions()) { if($this->hasCustomOptions()) {