LSsearchEntry :: __get(): fix attributes value access

This commit is contained in:
Benjamin Renard 2020-05-19 17:07:08 +02:00
parent 69eaf31598
commit 2ed985324e

View file

@ -233,7 +233,7 @@ class LSsearchEntry extends LSlog_staticLoggerClass {
$this -> cache[$key] = $ret; $this -> cache[$key] = $ret;
return $ret; return $ret;
} }
elseif (in_array($key,array_keys($this -> attrs_list))) { elseif (in_array($key, $this -> attrs_list)) {
return (isset($this -> attrs[$key])?$this -> attrs[$key]:null); return (isset($this -> attrs[$key])?$this -> attrs[$key]:null);
} }
elseif (array_key_exists($key,$this->params['customInfos'])) { elseif (array_key_exists($key,$this->params['customInfos'])) {