Fix issue from scrutinizer

This commit is contained in:
ATM John BOTELLA 2018-12-01 12:04:34 +01:00
parent 0e1c4d92da
commit c6f4879575
2 changed files with 1 additions and 3 deletions

View File

@ -1017,7 +1017,6 @@ abstract class CommonDocGenerator
global $hookmanager;
$parameters=array(
'object' => $object,
'curY' => &$curY,
'columnText' => $columnText,
'colKey' => $colKey

View File

@ -6291,12 +6291,11 @@ abstract class CommonObject
// Load language if required
if (! empty($extrafields->attributes[$this->table_element]['langfile'][$key])) $langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
$colspan='3';
if (is_array($params) && count($params)>0) {
if (array_key_exists('colspan',$params)) {
$colspan=$params['colspan'];
}
}else {
$colspan='3';
}
switch($mode) {