diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2009-06-28 07:58:59 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2009-06-28 07:58:59 -0400 |
commit | a12216dac37e75eee7cf4485223f5780987b364a (patch) | |
tree | da9d660a114fae6efe39592448aa64db1b77039e /pages | |
parent | 7ed8ffaf836af5c15d20263b67dbc927d2e0357e (diff) | |
download | pillowcase-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-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 | { |