news.php: remove NID 0 check as it breaks pagination (shows not found) - and it seems it is not needed after all
--- a/news.php
+++ b/news.php
@@ -33,20 +33,6 @@
if(isset($_REQUEST['nid'])) $nid = $_REQUEST['nid'];
if(!isset($nid) || !isNumber($nid)) $nid = false;
$cid = isset($_REQUEST['cid']) && isNumber($_REQUEST['cid']) ? $_REQUEST['cid'] : false;
-
-if ($nid < 1) {
- $current = "newserror";
- // load our template files to set up the page.
- if (file_exists("$skindir/default.tpl")) $tpl = new TemplatePower("$skindir/default.tpl");
- else $tpl = new TemplatePower("default_tpls/default.tpl");
- $title = "News entry was not found";
- $text = "News entry with ID " . $nid . " is not in database";
- include("includes/pagesetup.php");
- $tpl->assign("output", "<div id='pagetitle'>" . $title . "</div>" . write_error($text));
- $tpl->printToScreen();
- dbclose();
- exit();
-}
if($nid) {