mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 11:44:42 +02:00
PHP 8.1+ updates per processwire/processwire-issues#1664
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user