Fix warnings
This commit is contained in:
parent
f4dc43914d
commit
bc413ee8a9
@ -1222,7 +1222,7 @@ while ($i < min($num, $limit)) {
|
|||||||
if (isModEnabled('socialnetworks')) {
|
if (isModEnabled('socialnetworks')) {
|
||||||
foreach ($socialnetworks as $key => $value) {
|
foreach ($socialnetworks as $key => $value) {
|
||||||
if ($value['active'] && !empty($arrayfields['p.'.$key]['checked'])) {
|
if ($value['active'] && !empty($arrayfields['p.'.$key]['checked'])) {
|
||||||
print '<td class="tdoverflowmax100">'.dol_print_socialnetworks($arraysocialnetworks[$key], $obj->rowid, $obj->socid, $key, $socialnetworks).'</td>';
|
print '<td class="tdoverflowmax100">'.(empty($arraysocialnetworks[$key]) ? '' : dol_print_socialnetworks($arraysocialnetworks[$key], $obj->rowid, $obj->socid, $key, $socialnetworks)).'</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3256,7 +3256,7 @@ function dol_print_phone($phone, $countrycode = '', $cid = 0, $socid = 0, $addli
|
|||||||
global $conf, $user, $langs, $mysoc, $hookmanager;
|
global $conf, $user, $langs, $mysoc, $hookmanager;
|
||||||
|
|
||||||
// Clean phone parameter
|
// Clean phone parameter
|
||||||
$phone = preg_replace("/[\s.-]/", "", trim($phone));
|
$phone = is_null($phone) ? '' : preg_replace("/[\s.-]/", "", trim($phone));
|
||||||
if (empty($phone)) {
|
if (empty($phone)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -558,7 +558,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$textLateTitle = $langs->trans("NActionsLate", $board->nbtodolate);
|
$textLateTitle = $langs->trans("NActionsLate", $board->nbtodolate);
|
||||||
$textLateTitle .= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
|
$textLateTitle .= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil(empty($board->warning_delay) ? 0 : $board->warning_delay) >= 0 ? '+' : '').ceil(empty($board->warning_delay) ? 0 : $board->warning_delay).' '.$langs->trans("days").')';
|
||||||
|
|
||||||
if ($board->id == 'bank_account') {
|
if ($board->id == 'bank_account') {
|
||||||
$textLateTitle .= '<br><span class="opacitymedium">'.$langs->trans("IfYouDontReconcileDisableProperty", $langs->transnoentitiesnoconv("Conciliable")).'</span>';
|
$textLateTitle .= '<br><span class="opacitymedium">'.$langs->trans("IfYouDontReconcileDisableProperty", $langs->transnoentitiesnoconv("Conciliable")).'</span>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user