From 2ed985324e3f89ae3ada2e970eb3bcc7acd3144f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 19 May 2020 17:07:08 +0200 Subject: [PATCH] LSsearchEntry :: __get(): fix attributes value access --- src/includes/class/class.LSsearchEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSsearchEntry.php b/src/includes/class/class.LSsearchEntry.php index 0b776b49..df4fc8c2 100644 --- a/src/includes/class/class.LSsearchEntry.php +++ b/src/includes/class/class.LSsearchEntry.php @@ -233,7 +233,7 @@ class LSsearchEntry extends LSlog_staticLoggerClass { $this -> cache[$key] = $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); } elseif (array_key_exists($key,$this->params['customInfos'])) {