Skip to content

Commit ae60b9a

Browse files
author
lacatoire
committed
Fix: Stop using null as array offset (Resolves #227)
1 parent 3910427 commit ae60b9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpdotnet/phd/Package/PHP/Web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ public function header($id) {
204204
"alternatives" => $this->cchunk["alternatives"],
205205
"source" => $this->sourceInfo($id),
206206
);
207-
$setup["history"] = $this->history[$setup["source"]["path"]] ?? [];
207+
$history = $this->history ?? [];
208+
$setup["history"] = $history[$setup["source"]["path"]] ?? [];
208209
if ($this->getChildren($id)) {
209210
$lang = $this->config->language;
210211
$setup["extra_header_links"] = array(

0 commit comments

Comments
 (0)