*/
public function &getMessage($id)
{
+ $message = null;
if (is_numeric($id) && Banana::$group != $this->ingroup) {
if (is_null(Banana::$spool)) {
$this->group(Banana::$group);
}
$data = $this->article($id);
if ($data !== false) {
- return new BananaMessage($data);
+ $message = new BananaMessage($data);
}
- return null;
+ return $message;
}
/** Return the sources of the message
if ($data !== false) {
return implode("\n", $data);
}
- return null;
+ $data = null;
+ return $data;
}
/** Return the indexes of the messages presents in the Box
}
}
-// vim:set et sw=4 sts=4 ts=4:
+// vim:set et sw=4 sts=4 ts=4 enc=utf-8:
?>