Skip to content

Commit

Permalink
OLDWEB: Fix zero index screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 9, 2016
1 parent d0dbd4e commit a39204e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -17,7 +17,7 @@
html_header("ScummVM", '<script src="'.$file_root.'/screenshots.js" type="text/javascript"></script>');
sidebar_start();

$shownews = empty($_GET['shownews']) ? 0 : 1;
$shownews = isset($_GET['shownews']) ? 1 : 0;

// display welcome table
// don't show this if we are in news mode
Expand Down
8 changes: 5 additions & 3 deletions screenshots.php
Expand Up @@ -24,11 +24,13 @@

<?php

$view = empty($_GET['view']) ? "" : $_GET['view'];
$offset = empty($_GET['offset']) ? 0 : $_GET['offset'];
$view = isset($_GET['view']) ? $_GET['view'] : -1;
$offset = isset($_GET['offset']) ? $_GET['offset'] : -1;

print "view: $view\noffset: $offset\n";

// if in single view
if ($view != "")
if ($view != -1)
{
if (!is_numeric($view))
{
Expand Down

0 comments on commit a39204e

Please sign in to comment.