mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Bugtracker #4102 - output buffering in mailout
This commit is contained in:
parent
613ff90e55
commit
7e3489c374
@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $
|
||||||
| $Revision: 1.4 $
|
| $Revision: 1.5 $
|
||||||
| $Date: 2007-04-14 09:30:39 $
|
| $Date: 2007-09-29 17:24:43 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@ -122,18 +122,13 @@ if (isset($_POST['submit'])) {
|
|||||||
$_POST['mail_id'] = time();
|
$_POST['mail_id'] = time();
|
||||||
|
|
||||||
$sql->db_Select_gen($qry);
|
$sql->db_Select_gen($qry);
|
||||||
if (ob_get_level() == 0) {
|
|
||||||
ob_start();
|
|
||||||
}
|
|
||||||
while ($row = $sql->db_Fetch()) {
|
while ($row = $sql->db_Fetch()) {
|
||||||
$qry = "0,'sendmail', '".$_POST['mail_id']."', '".$row['user_id']."', '', '0', \"".$tp->toDB($_POST['email_subject'])."\" ";
|
$qry = "0,'sendmail', '".$_POST['mail_id']."', '".$row['user_id']."', '', '0', \"".$tp->toDB($_POST['email_subject'])."\" ";
|
||||||
if($sql2 -> db_Insert("generic", $qry)){
|
if($sql2 -> db_Insert("generic", $qry)){
|
||||||
$c++;
|
$c++;
|
||||||
}
|
}
|
||||||
ob_flush();
|
|
||||||
flush();
|
|
||||||
}
|
}
|
||||||
ob_end_flush();
|
|
||||||
|
|
||||||
$debug = (e_MENU == "debug") ? "?[debug]" : "";
|
$debug = (e_MENU == "debug") ? "?[debug]" : "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user