Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix: undefined array key "http"
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxisHenry committed Dec 20, 2022
1 parent 3ee82e5 commit 5786e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function generateCategoryContentList(string $category): string
{
$content = getContent($category);
$list = "";
$domain = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
$domain = (($_SERVER['HTTPS'] ?? false) ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
foreach ($content as $item) {
$url = $domain . "/shared/$category/$item";
$downloadUrl = $domain . "/shared/$category/?file=$item";
Expand Down

0 comments on commit 5786e2b

Please sign in to comment.