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:
@@ -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
|
||||
|
Reference in New Issue
Block a user