Fix issue from scrutinizer
This commit is contained in:
parent
0e1c4d92da
commit
c6f4879575
@ -1017,7 +1017,6 @@ abstract class CommonDocGenerator
|
|||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
$parameters=array(
|
$parameters=array(
|
||||||
'object' => $object,
|
|
||||||
'curY' => &$curY,
|
'curY' => &$curY,
|
||||||
'columnText' => $columnText,
|
'columnText' => $columnText,
|
||||||
'colKey' => $colKey
|
'colKey' => $colKey
|
||||||
|
|||||||
@ -6291,12 +6291,11 @@ abstract class CommonObject
|
|||||||
// Load language if required
|
// Load language if required
|
||||||
if (! empty($extrafields->attributes[$this->table_element]['langfile'][$key])) $langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
|
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 (is_array($params) && count($params)>0) {
|
||||||
if (array_key_exists('colspan',$params)) {
|
if (array_key_exists('colspan',$params)) {
|
||||||
$colspan=$params['colspan'];
|
$colspan=$params['colspan'];
|
||||||
}
|
}
|
||||||
}else {
|
|
||||||
$colspan='3';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($mode) {
|
switch($mode) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user