We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae60b9a commit e69ba8dCopy full SHA for e69ba8d
phpdotnet/phd/Package/PHP/Web.php
@@ -205,7 +205,13 @@ public function header($id) {
205
"source" => $this->sourceInfo($id),
206
);
207
$history = $this->history ?? [];
208
- $setup["history"] = $history[$setup["source"]["path"]] ?? [];
+
209
+ $sourcePath = $setup["source"]["path"] ?? null;
210
211
+ $setup["history"] = $sourcePath !== null
212
+ ? ($history[$sourcePath] ?? [])
213
+ : [];
214
215
if ($this->getChildren($id)) {
216
$lang = $this->config->language;
217
$setup["extra_header_links"] = array(
0 commit comments