Commit e12c262423

e12c262423808ea3c82dec3da2db1b2ff38a0b81

parent: 243aae7b17

Unsigned

cmc <hello@cleberg.net> · 2023-06-01 14:57 UTC

fix: unquoted variable

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