From 4717810aa7b9ea6506bd57b1ea35b4868b74e9db Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Tue, 14 May 2024 07:29:36 +0200 Subject: [PATCH] Fix undefined property displaying car --- lib/GaletteAuto/Auto.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/GaletteAuto/Auto.php b/lib/GaletteAuto/Auto.php index 5bbc4cc..c032ce9 100644 --- a/lib/GaletteAuto/Auto.php +++ b/lib/GaletteAuto/Auto.php @@ -563,9 +563,7 @@ public function __get(string $name): mixed case 'picture': return $this->picture; default: - if (isset($this->$name)) { - return $this->$name; - } + return $this->$name; break; } }