Fix phpcs
This commit is contained in:
parent
ce035eb4ce
commit
3399ab2c5d
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user