X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=thread.php;h=026d8e9354af06da0c0c973c2805a912d0c057f0;hb=7ce9f53d1268b65c6ae5ac350bc08fe0b11e4c08;hp=ca57ef650aef02426f27faede4fa127af9764205;hpb=e2625e7277ea0769529e4eaf3f28412dea90399b;p=banana.git diff --git a/thread.php b/thread.php index ca57ef6..026d8e9 100644 --- a/thread.php +++ b/thread.php @@ -28,7 +28,10 @@ if (isset($_REQUEST['group'])) { } else { $group=htmlentities(strtolower(strtok(str_replace(" ","",$_REQUEST['newsgroups']),","))); } -$id=htmlentities(strtolower($_REQUEST['id'])); + +if (isset($_REQUEST['id'])) { + $id=htmlentities(strtolower($_REQUEST['id'])); +} //$mynntp = new nntp($news['server'],120,1); $mynntp = new nntp($news['server']); @@ -55,7 +58,7 @@ if (!$spool) { exit; } $max = 50; -if ($_REQUEST['first']>sizeof($spool->overview)) +if (isset($_REQUEST['first']) && ($_REQUEST['first']>sizeof($spool->overview))) $_REQUEST['first']=sizeof($spool->overview); $first = (isset($_REQUEST['first'])? (floor($_REQUEST['first']/$max)*$max+1):1); @@ -148,7 +151,9 @@ if (isset($_REQUEST['action']) && (isset($_REQUEST['type']))) { .$locale['thread']['group_a'];?>