Skip to content

Commit

Permalink
Fix undefined property displaying car
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 14, 2024
1 parent 1d8f516 commit 4717810
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/GaletteAuto/Auto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4717810

Please sign in to comment.