Commit e450de8cd0

e450de8cd009207a0d7a14537eeaef8ead0ae370

parent: 468bc55ada

Unsigned

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

fix missing var assignment

Layout: unified · split

index.php +3 −3
@@ -5,9 +5,9 @@ $path = ltrim($_SERVER['REQUEST_URI'], '/');
55$elements = explode('/', $path);
66
77if (empty($elements[0])) {
8 get_stories(
8 $html_output = get_stories(
99 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"',
10 'Top'
10 'Top'
1111 );
1212 echo_html(
1313 $GLOBALS['full_domain'] . '/best/',
@@ -18,7 +18,7 @@ if (empty($elements[0])) {
1818} else {
1919 switch (array_shift($elements)) {
2020 case 'top':
21 get_stories(
21 $html_output = get_stories(
2222 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"',
2323 'Top'
2424 );