From e12c262423808ea3c82dec3da2db1b2ff38a0b81 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 1 Jun 2023 09:57:39 -0500 Subject: fix: unquoted variable --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8c6d8e7..37ac07a 100644 --- a/index.php +++ b/index.php @@ -177,7 +177,7 @@ function get_user(string $api_url, string $inline_title) { $limit = count($response['submitted']) > 10 ? 10 : count($response['submitted']); if (count($response['submitted']) > 0) { for ($i = 0; $i < $limit; $i++) { - $sub_url = 'https://hacker-news.firebaseio.com/v0/item/' . $response['submitted][$i] . '.json'; + $sub_url = 'https://hacker-news.firebaseio.com/v0/item/' . $response['submitted'][$i] . '.json'; $sub_response_raw = file_get_contents($sub_url); $sub_response = json_decode($sub_response_raw, true); -- cgit v1.2.3-70-g09d2