mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 05:21:29 +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;
|
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()) {
|
||||||
|
Reference in New Issue
Block a user