LSsearch: fix PHP warning

This commit is contained in:
Benjamin Renard 2020-05-12 20:11:45 +02:00
parent e6e5f1c2b8
commit 047d6f51c8

View file

@ -144,7 +144,7 @@ class LSsearch {
* @retval boolean True on success or False
*/
private function loadDefaultParameters() {
if (is_array($this -> config['params'])) {
if (isset($this -> config['params']) && is_array($this -> config['params'])) {
return $this -> setParams($this -> config['params']);
}
return true;