mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 12:31:17 +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;
|
$user = $this->wire()->user;
|
||||||
$key = "_{$this->name}_add_items";
|
$key = "_{$this->name}_add_items";
|
||||||
$value = trim($input->$key);
|
$value = trim((string) $input->$key);
|
||||||
|
|
||||||
if(empty($value)) return;
|
if(empty($value)) return;
|
||||||
|
|
||||||
|
@@ -695,7 +695,7 @@ class ProcessPageSearch extends Process implements ConfigurableModule {
|
|||||||
$selector = ''; // for regular ProcessPageSearch
|
$selector = ''; // for regular ProcessPageSearch
|
||||||
|
|
||||||
// search query text
|
// search query text
|
||||||
$q = $input->whitelist('q');
|
$q = (string) $input->whitelist('q');
|
||||||
if(strlen($q)) {
|
if(strlen($q)) {
|
||||||
// GET vars "property" or "field" can used interchangably
|
// GET vars "property" or "field" can used interchangably
|
||||||
if($input->whitelist('property')) {
|
if($input->whitelist('property')) {
|
||||||
|
Reference in New Issue
Block a user