Skip to content

Commit 1561658

Browse files
authored
Fix contributors section (#69)
* devdocs-website-6 Add Contributor Highlights in the docs * Fix problem with contributors * Remove commented code * Code review fix
1 parent 10fe8c7 commit 1561658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/DocsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function show($version, $page = null)
9191
$metaKeywords = $pageCustomData['keywords'] ?? self::DEFAULT_META_KEYWORDS;
9292
$communityNote = $pageCustomData['communityNote'] ?? true;
9393
$contributors = $pageCustomData['contributors'] ?? false;
94-
$contributorsData = explode(',', $contributors);
94+
$contributorsData = $contributors ? explode(',', $contributors) : [];
9595

9696
if (is_null($content)) {
9797
$otherVersions = $this->docs->versionsContainingPage($page);

0 commit comments

Comments
 (0)