Skip to content

Commit 0a73293

Browse files
committed
Make sure that handleData is not passed a null value
1 parent 021fc9c commit 0a73293

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

wcfsetup/install/files/lib/data/DatabaseObject.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(null|string|int $id, ?array $row = null, ?self $obje
7373
$row = $object->data;
7474
}
7575

76-
$this->handleData($row);
76+
$this->handleData($row ?? []);
7777
}
7878

7979
/**

wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(null|string|int $id, ?array $row = null, ?DatabaseOb
4444
$row = $object->data;
4545
}
4646

47-
$this->handleData($row);
47+
$this->handleData($row ?? []);
4848
}
4949

5050
/**

wcfsetup/install/files/lib/data/template/Template.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(null|string|int $id, ?array $row = null, ?DatabaseOb
5252
$row = $object->data;
5353
}
5454

55-
$this->handleData($row);
55+
$this->handleData($row ?? []);
5656
}
5757

5858
/**

wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(null|string|int $id, ?array $row = null, ?DatabaseOb
7676
$row = $object->data;
7777
}
7878

79-
$this->handleData($row);
79+
$this->handleData($row ?? []);
8080
}
8181

8282
/**

wcfsetup/install/files/lib/data/user/User.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function __construct(null|string|int $id, ?array $row = null, ?DatabaseOb
136136
$row = $object->data;
137137
}
138138

139-
$this->handleData($row);
139+
$this->handleData($row ?? []);
140140
}
141141

142142
/**

0 commit comments

Comments
 (0)