We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b988a44 commit 02de1caCopy full SHA for 02de1ca
site/models/station.php
@@ -2,8 +2,10 @@
2
3
class StationPage extends Kirby\Cms\Page
4
{
5
- public function writeContent(array $data, string $languageCode = null): bool
6
- {
+ public function writeContent(
+ array $data,
7
+ ?string $languageCode = null
8
+ ): bool {
9
if ($station = Db::first("stations", "*", ["uid" => $this->uid()])) {
10
return Db::update("stations", $data, ["uid" => $this->uid()]);
11
} else {
0 commit comments