correct space
This commit is contained in:
parent
69321c47be
commit
5f4d54ede5
@ -152,12 +152,9 @@ class InterfaceTicketEmail extends DolibarrTriggers
|
||||
}
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/class/CMailFile.class.php';
|
||||
$mailfile = new CMailFile($subject, $sendto, $from, $message, $filepath, $mimetype, $filename, '', '', 0, -1);
|
||||
if ($mailfile->error)
|
||||
{
|
||||
if ($mailfile->error) {
|
||||
setEventMessages($mailfile->error, $mailfile->errors, 'errors');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$result = $mailfile->sendfile();
|
||||
}
|
||||
if (!empty($conf->global->TICKET_DISABLE_MAIL_AUTOCOPY_TO)) {
|
||||
|
||||
@ -350,9 +350,7 @@ if (empty($reshook))
|
||||
|
||||
if ($res = $prodcomb->fetchByProductCombination2ValuePairs($idprod, $combinations)) {
|
||||
$idprod = $res->fk_product_child;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
setEventMessages($langs->trans('ErrorProductCombinationNotFound'), null, 'errors');
|
||||
$error ++;
|
||||
}
|
||||
|
||||
@ -1160,9 +1160,7 @@ if (empty($reshook))
|
||||
|
||||
if ($res = $prodcomb->fetchByProductCombination2ValuePairs($idprod, $combinations)) {
|
||||
$idprod = $res->fk_product_child;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
setEventMessages($langs->trans('ErrorProductCombinationNotFound'), null, 'errors');
|
||||
$error ++;
|
||||
}
|
||||
|
||||
@ -464,9 +464,7 @@ if (empty($reshook))
|
||||
$sql .= " WHERE rowid = " . $rowid;
|
||||
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
setEventMessages(('delete_price_by_qty'.$langs->transnoentities(MissingIds)), null,'errors');
|
||||
}
|
||||
}
|
||||
@ -479,9 +477,7 @@ if (empty($reshook))
|
||||
$sql .= " WHERE fk_product_price = " . $priceid;
|
||||
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
setEventMessages(('delete_price_by_qty'.$langs->transnoentities(MissingIds)), null,'errors');
|
||||
}
|
||||
}
|
||||
|
||||
@ -1614,12 +1614,9 @@ class Ticket extends CommonObject
|
||||
}
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/class/CMailFile.class.php';
|
||||
$mailfile = new CMailFile($subject, $info_sendto['email'], $from, $message, $filepath, $mimetype, $filename, $sendtocc, '', $deliveryreceipt, 0);
|
||||
if ($mailfile->error || $mailfile->errors)
|
||||
{
|
||||
if ($mailfile->error || $mailfile->errors) {
|
||||
setEventMessages($mailfile->error, $mailfile->errors, 'errors');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$result = $mailfile->sendfile();
|
||||
if ($result > 0) {
|
||||
$nb_sent++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user