1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 03:05:26 +02:00
This commit is contained in:
Ryan Cramer
2023-07-25 09:37:57 -04:00
parent e81da24679
commit b170dfec16
2 changed files with 2 additions and 2 deletions

View File

@@ -722,7 +722,7 @@ class InputfieldCKEditor extends InputfieldTextarea implements ConfigModule {
*/
public function ___processInput(WireInputData $input) {
$value = trim($input[$this->name]);
$value = trim((string) $input[$this->name]);
if($value == self::PLACEHOLDER_TEXT) return $this; // ignore value
$value = $this->purifyValue($value);

View File

@@ -914,7 +914,7 @@ class InputfieldSelect extends Inputfield implements InputfieldHasSelectableOpti
if(is_array($value)) {
$cnt = count($value);
if(!$cnt) return true;
if($cnt === 1) return strlen(reset($value)) === 0;
if($cnt === 1) return strlen((string) reset($value)) === 0;
return false; // $cnt > 1
} else if($value === null || $value === false) {