From: x2000habouzit Date: Wed, 20 Oct 2004 15:26:26 +0000 (+0000) Subject: NL::setSent() X-Git-Tag: xorg/old~1218 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0e608c4ea6a65069f2efafa91cd3d1bd357befdd;p=platal.git NL::setSent() --- diff --git a/include/newsletter.inc.php b/include/newsletter.inc.php index ca7afd2..9d48e43 100644 --- a/include/newsletter.inc.php +++ b/include/newsletter.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter.inc.php,v 1.19 2004-10-20 15:09:58 x2000habouzit Exp $ + $Id: newsletter.inc.php,v 1.20 2004-10-20 15:26:26 x2000habouzit Exp $ ***************************************************************************/ @@ -71,6 +71,11 @@ class NewsLetter { mysql_free_result($res); } + function setSent() { + global $globals; + $globals->db->query("UPDATE newsletter SET bits='sent' WHERE id='{$this->_id}'"); + } + function save() { global $globals; $globals->db->query("UPDATE newsletter