1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 23:02:58 +02:00

Add @netcarver PR #226 to fix unintentional assignment in conditional, plus minor phpdoc update in InputfieldWrapper

Co-authored-by: netcarver
This commit is contained in:
Ryan Cramer
2022-05-20 08:42:39 -04:00
parent a0adc207de
commit 761e83a5f3
2 changed files with 17 additions and 4 deletions

View File

@@ -2821,9 +2821,9 @@ class ProcessTemplate extends Process implements ConfigurableModule {
$value = $f->val();
if($sanitizerName === 'int') {
$value = (int) $value;
} else if($sanitizerName = 'text') {
} else if($sanitizerName === 'text') {
$value = $sanitizer->text($value);
} else if($sanitizerName = 'words') {
} else if($sanitizerName === 'words') {
$value = $sanitizer->words($value);
} else {
// use as-is