diff --git a/wire/modules/Inputfield/InputfieldSelect.module b/wire/modules/Inputfield/InputfieldSelect.module index 367e8b23..73568aba 100644 --- a/wire/modules/Inputfield/InputfieldSelect.module +++ b/wire/modules/Inputfield/InputfieldSelect.module @@ -8,7 +8,7 @@ * Sublcasses will want to override the render method, but it's not necessary to override processInput(). * Subclasses that select multiple values should implement the InputfieldHasArrayValue interface. * - * ProcessWire 3.x, Copyright 2022 by Ryan Cramer + * ProcessWire 3.x, Copyright 2023 by Ryan Cramer * https://processwire.com * * @property string|int $defaultValue @@ -292,7 +292,7 @@ class InputfieldSelect extends Inputfield implements InputfieldHasSelectableOpti $line = trim($line); $line = ltrim($line, '+'); if(strpos($line, 'disabled:') === 0) list(,$line) = explode('disabled:', $line, 2); - if(!strpos($line, '=')) continue; // 0 or false OK + if(strpos($line, '=') === false) continue; list($key, $label) = explode('=', $line, 2); if($languageID) { $this->optionLanguageLabel($languageID, $key, $label);