summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2009-06-28 07:58:59 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2009-06-28 07:58:59 -0400
commita12216dac37e75eee7cf4485223f5780987b364a (patch)
treeda9d660a114fae6efe39592448aa64db1b77039e /pages
parent7ed8ffaf836af5c15d20263b67dbc927d2e0357e (diff)
downloadpillowcase-a12216dac37e75eee7cf4485223f5780987b364a.tar.gz
pillowcase-a12216dac37e75eee7cf4485223f5780987b364a.tar.bz2
pillowcase-a12216dac37e75eee7cf4485223f5780987b364a.zip
Removed last_comic_id clause from season.php when applicable
Diffstat (limited to 'pages')
-rwxr-xr-xpages/season.php8
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"; 19if (!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);
21while ($getcomics3 = mysql_fetch_array($getcomics2)) 27while ($getcomics3 = mysql_fetch_array($getcomics2))
22{ 28{