1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Bugtracker #4102 - output buffering in mailout

This commit is contained in:
e107steved 2007-09-29 17:24:43 +00:00
parent 613ff90e55
commit 7e3489c374

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $
| $Revision: 1.4 $
| $Date: 2007-04-14 09:30:39 $
| $Revision: 1.5 $
| $Date: 2007-09-29 17:24:43 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -122,18 +122,13 @@ if (isset($_POST['submit'])) {
$_POST['mail_id'] = time();
$sql->db_Select_gen($qry);
if (ob_get_level() == 0) {
ob_start();
}
while ($row = $sql->db_Fetch()) {
$qry = "0,'sendmail', '".$_POST['mail_id']."', '".$row['user_id']."', '', '0', \"".$tp->toDB($_POST['email_subject'])."\" ";
if($sql2 -> db_Insert("generic", $qry)){
$c++;
}
ob_flush();
flush();
}
ob_end_flush();
$debug = (e_MENU == "debug") ? "?[debug]" : "";