Merge pull request #19124 from atm-john/fix_numeric_value
FIX : php 7.4 Warning for numeric value
This commit is contained in:
commit
ad2d411793
@ -7693,7 +7693,7 @@ abstract class CommonObject
|
||||
$langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
|
||||
}
|
||||
|
||||
$colspan = '';
|
||||
$colspan = 0;
|
||||
if (is_array($params) && count($params) > 0 && $display_type=='card') {
|
||||
if (array_key_exists('cols', $params)) {
|
||||
$colspan = $params['cols'];
|
||||
@ -7706,6 +7706,7 @@ abstract class CommonObject
|
||||
}
|
||||
}
|
||||
}
|
||||
$colspan = intval($colspan);
|
||||
|
||||
switch ($mode) {
|
||||
case "view":
|
||||
@ -7772,7 +7773,7 @@ abstract class CommonObject
|
||||
$html_id = (empty($this->id) ? '' : 'extrarow-'.$this->element.'_'.$key.'_'.$this->id);
|
||||
if ($display_type=='card') {
|
||||
if (!empty($conf->global->MAIN_EXTRAFIELDS_USE_TWO_COLUMS) && ($e % 2) == 0) {
|
||||
$colspan = '0';
|
||||
$colspan = 0;
|
||||
}
|
||||
|
||||
if ($action == 'selectlines') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user