Commit e12c262423
Unsigned
Layout: unified · split
index.php +1 −1
| @@ -177,7 +177,7 @@ function get_user(string $api_url, string $inline_title) { | |||
| 177 | $limit = count($response['submitted']) > 10 ? 10 : count($response['submitted']); | 177 | $limit = count($response['submitted']) > 10 ? 10 : count($response['submitted']); |
| 178 | if (count($response['submitted']) > 0) { | 178 | if (count($response['submitted']) > 0) { |
| 179 | for ($i = 0; $i < $limit; $i++) { | 179 | for ($i = 0; $i < $limit; $i++) { |
| 180 | $sub_url = 'https://hacker-news.firebaseio.com/v0/item/' . $response['submitted][$i] . '.json'; | 180 | $sub_url = 'https://hacker-news.firebaseio.com/v0/item/' . $response['submitted'][$i] . '.json'; |
| 181 | $sub_response_raw = file_get_contents($sub_url); | 181 | $sub_response_raw = file_get_contents($sub_url); |
| 182 | $sub_response = json_decode($sub_response_raw, true); | 182 | $sub_response = json_decode($sub_response_raw, true); |
| 183 | 183 | ||