diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:01:37 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:01:37 -0500 |
commit | e450de8cd009207a0d7a14537eeaef8ead0ae370 (patch) | |
tree | fe8c2166c5925aebaddbec94561b673e3cc75108 | |
parent | 468bc55ada06979e53b1d03b040b2dfe6beaf017 (diff) | |
download | hn-e450de8cd009207a0d7a14537eeaef8ead0ae370.tar.gz hn-e450de8cd009207a0d7a14537eeaef8ead0ae370.tar.bz2 hn-e450de8cd009207a0d7a14537eeaef8ead0ae370.zip |
fix missing var assignment
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,9 +5,9 @@ $path = ltrim($_SERVER['REQUEST_URI'], '/'); $elements = explode('/', $path); if (empty($elements[0])) { - get_stories( + $html_output = get_stories( 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"', - 'Top' + 'Top' ); echo_html( $GLOBALS['full_domain'] . '/best/', @@ -18,7 +18,7 @@ if (empty($elements[0])) { } else { switch (array_shift($elements)) { case 'top': - get_stories( + $html_output = get_stories( 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"', 'Top' ); |