Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-01-07 10:20:41 +01:00
parent ce035eb4ce
commit 3399ab2c5d
2 changed files with 3 additions and 3 deletions

View File

@ -203,12 +203,12 @@ class InterfaceTicketEmail extends DolibarrTriggers
$contactid = GETPOST('contactid', 'alpha');
if(!empty($contactid)) {
if (!empty($contactid)) {
$contact = new Contact($this->db);
$res = $contact->fetch($contactid);
}
if($res > 0 && !empty($contact->email) && !empty($contact->statut)) {
if ($res > 0 && !empty($contact->email) && !empty($contact->statut)) {
$sendto = $contact->email;
} elseif (!empty($object->fk_soc)) {
$object->fetch_thirdparty();

View File

@ -2140,7 +2140,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
$c = new Categorie($db);
$cats = $c->containing($object->id, Categorie::TYPE_SUPPLIER);
$arrayselected = array();
foreach($cats as $cat) {
foreach ($cats as $cat) {
$arrayselected[] = $cat->id;
}
print img_picto('', 'category').$form->multiselectarray('suppcats', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);