diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-06-01 09:57:39 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-06-01 09:57:39 -0500 |
commit | e12c262423808ea3c82dec3da2db1b2ff38a0b81 (patch) | |
tree | fac93229c1a5c379348a1322c445147e922e9bac | |
parent | 243aae7b1778ae53b77d82f2e33a1037d6eb0a5c (diff) | |
download | hn-e12c262423808ea3c82dec3da2db1b2ff38a0b81.tar.gz hn-e12c262423808ea3c82dec3da2db1b2ff38a0b81.tar.bz2 hn-e12c262423808ea3c82dec3da2db1b2ff38a0b81.zip |
fix: unquoted variable
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |