Fix references when replying to a post with artid = 0
[banana.git] / banana / banana.inc.php.in
index df16d8b..77a4d62 100644 (file)
@@ -497,7 +497,7 @@ class Banana
                     $hdr_values[$header] = str_replace(', ', ',', $hdr_values[$header]);
                 }
             }
-            if ($artid) {
+            if (!is_null($artid)) {
                 $old =& $this->loadMessage($group, $artid);
                 $hdr_values['References'] = $old->getHeaderValue('references') . $old->getHeaderValue('message-id');
             }