Index: branches/dev/html/admin/mail/index.php
===================================================================
--- branches/dev/html/admin/mail/index.php	(revision 13404)
+++ branches/dev/html/admin/mail/index.php	(revision 13409)
@@ -386,8 +386,8 @@
 	$dtb_send_history = array();
 	
-    if(DB_TYPE=="pqsql"){
+    if(DB_TYPE == "pqsql"){
 	   $dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id');
-    }elseif(DB_TYPE=="mysql"){
-       $dtb_send_history["send_id"] = $objQuery->max('dtb_send_history', 'send_id')+1;
+    }elseif(DB_TYPE == "mysql"){
+       $dtb_send_history["send_id"] = $objQuery->max('dtb_send_history', 'send_id');
     }
     
