deprecated warning fix

This commit is contained in:
Bachir Soussi Chiadmi 2023-06-20 21:03:45 +02:00
parent 02fc5f228c
commit 7b22d7d9e7
1 changed files with 2 additions and 2 deletions

View File

@ -338,11 +338,11 @@ class Base extends ControllerBase {
// $this->terms = $request->query->get('terms');
$t = $request->query->get('terms');
// $this->terms = strlen($t) ? explode(',', $t) : null;
$this->terms = strlen($t) ? json_decode($t) : null;
$this->terms = $t && strlen($t) ? json_decode($t) : null;
// get the filters of advanced search
$f = $request->query->get('filters');
$this->filters = strlen($f) ? explode(',', $f) : null;
$this->filters = $f && strlen($f) ? explode(',', $f) : null;
// $this->allparams = $request->query->all();
// $request->attributes->get('_raw_variables')->get('filters')
//