NL::setSent()
authorx2000habouzit <x2000habouzit>
Wed, 20 Oct 2004 15:26:26 +0000 (15:26 +0000)
committerx2000habouzit <x2000habouzit>
Wed, 20 Oct 2004 15:26:26 +0000 (15:26 +0000)
include/newsletter.inc.php

index ca7afd2..9d48e43 100644 (file)
@@ -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