1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 11:44:42 +02:00
This commit is contained in:
Ryan Cramer
2023-08-04 08:35:33 -04:00
parent b7c232972e
commit 6266d1d86b
2 changed files with 2 additions and 2 deletions

View File

@@ -1082,7 +1082,7 @@ class InputfieldPage extends Inputfield implements ConfigurableModule {
$user = $this->wire()->user;
$key = "_{$this->name}_add_items";
$value = trim($input->$key);
$value = trim((string) $input->$key);
if(empty($value)) return;

View File

@@ -695,7 +695,7 @@ class ProcessPageSearch extends Process implements ConfigurableModule {
$selector = ''; // for regular ProcessPageSearch
// search query text
$q = $input->whitelist('q');
$q = (string) $input->whitelist('q');
if(strlen($q)) {
// GET vars "property" or "field" can used interchangably
if($input->whitelist('property')) {