diff options
Diffstat (limited to 'pages/season.php')
-rwxr-xr-x | pages/season.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pages/season.php b/pages/season.php index 6b45a27..5fa7cef 100755 --- a/pages/season.php +++ b/pages/season.php | |||
@@ -16,7 +16,13 @@ if (isset($getseason3) && ($getseason3['season_id'] == $_GET['season'])) | |||
16 | <UL ID="archive"> | 16 | <UL ID="archive"> |
17 | <?php | 17 | <?php |
18 | 18 | ||
19 | $getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " AND comic_id <= " . $getseason3['last_comic_id'] . " ORDER BY comic_id ASC"; | 19 | if (!is_null($getseasons3['last_comic_id'])) |
20 | { | ||
21 | $getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " AND comic_id <= " . $getseason3['last_comic_id'] . " ORDER BY comic_id ASC"; | ||
22 | } else { | ||
23 | $getcomics = "SELECT * FROM comics WHERE status = \"publish\" AND comic_id >= " . $getseason3['first_comic_id'] . " ORDER BY comic_id ASC"; | ||
24 | } | ||
25 | |||
20 | $getcomics2 = mysql_query($getcomics); | 26 | $getcomics2 = mysql_query($getcomics); |
21 | while ($getcomics3 = mysql_fetch_array($getcomics2)) | 27 | while ($getcomics3 = mysql_fetch_array($getcomics2)) |
22 | { | 28 | { |