mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-07 17:42:53 +01:00
fix:le résultat de explode est troujours un array
This commit is contained in:
committed by
Laurent Destailleur
parent
cb551cfd5a
commit
f2c7db63cf
@@ -6316,7 +6316,7 @@ abstract class CommonObject
|
||||
// Several field into label (eq table:code|libelle:rowid)
|
||||
$notrans = false;
|
||||
$fields_label = explode('|', $InfoFieldList[1]);
|
||||
if (is_array($fields_label))
|
||||
if (count($fields_label)>1)
|
||||
{
|
||||
$notrans = true;
|
||||
foreach ($fields_label as $field_toshow)
|
||||
@@ -6488,7 +6488,7 @@ abstract class CommonObject
|
||||
$notrans = false;
|
||||
// Several field into label (eq table:code|libelle:rowid)
|
||||
$fields_label = explode('|', $InfoFieldList[1]);
|
||||
if (is_array($fields_label)) {
|
||||
if (count($fields_label)>1) {
|
||||
$notrans = true;
|
||||
foreach ($fields_label as $field_toshow) {
|
||||
$labeltoshow .= $obj->$field_toshow.' ';
|
||||
|
||||
Reference in New Issue
Block a user