Fix: Solve phpcodesniffer errors and warning
This commit is contained in:
parent
f492fde0da
commit
3e5c5fc0f6
@ -208,9 +208,11 @@ if (($_POST['action'] == 'send' || $_POST['action'] == 'sendhtml')
|
|||||||
$body=make_substitutions($body,$substitutionarrayfortest);
|
$body=make_substitutions($body,$substitutionarrayfortest);
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php");
|
||||||
$mailfile = new CMailFile($subject, $sendto, $email_from, $body,
|
$mailfile = new CMailFile(
|
||||||
|
$subject, $sendto, $email_from, $body,
|
||||||
$filepath, $mimetype, $filename,
|
$filepath, $mimetype, $filename,
|
||||||
$sendtocc, $sendtoccc, $deliveryreceipt, $msgishtml, $errors_to);
|
$sendtocc, $sendtoccc, $deliveryreceipt, $msgishtml, $errors_to
|
||||||
|
);
|
||||||
|
|
||||||
$result=$mailfile->sendfile();
|
$result=$mailfile->sendfile();
|
||||||
|
|
||||||
|
|||||||
@ -134,11 +134,8 @@ if ($action== 'del')
|
|||||||
$type='company';
|
$type='company';
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
|
||||||
$sql.= " WHERE nom='".$db->escape($value)."' AND type='".$type."' AND entity=".$conf->entity;
|
$sql.= " WHERE nom='".$db->escape($value)."' AND type='".$type."' AND entity=".$conf->entity;
|
||||||
if ($db->query($sql))
|
$resql=$db->query($sql);
|
||||||
{
|
if (! $resql) dol_print_error($db);
|
||||||
|
|
||||||
}
|
|
||||||
else dol_print_error($db);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define default generator
|
// Define default generator
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user