X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fpost.inc.php;h=b240ca201aa4d5b42130a0725231bcc09aa1e445;hb=7c111d8d564aa37efe0b364081fabc03c9f42357;hp=daea0896921ead7b61bf8287cd49e57c74287255;hpb=ac785e2714bd6790a188ec01d1201e4fd6919499;p=banana.git diff --git a/banana/post.inc.php b/banana/post.inc.php index daea089..b240ca2 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -23,6 +23,8 @@ class BananaPost var $pj; /** poster name */ var $name; + /** test validity */ + var $valid = true; /** constructor * @param $_id STRING MSGNUM or MSGID (a group should be selected in this case) @@ -34,6 +36,7 @@ class BananaPost $this->pj = array(); $this->messages = array(); if (!$this->_header()) { + $this->valid = false; return null; } @@ -41,6 +44,7 @@ class BananaPost if ($body = $banana->nntp->body($_id)) { $this->body = join("\n", $body); } else { + $this->valid = false; return null; }