diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index f344ebced96..245c4b5d56d 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -533,10 +533,12 @@ llxFooter("Dernière modification $Date$ révision $Revision$webcal->enabled) { @@ -547,9 +549,10 @@ function add_row_for_webcal_link() { print ''.$langs->trans("AddCalendarEntry").''; print ''; - print ' '.$langs->transnoentities("ErrorWebcalLoginNotDefined","id."\">".$user->login.""); + print ' '.$langs->transnoentities("ErrorWebcalLoginNotDefined","id."\">".$user->login.""); print ''; print ''; + $nbtr++; } else { @@ -562,10 +565,13 @@ function add_row_for_webcal_link() print ''.$langs->trans("AddCalendarEntry").''; print 'webcal->syncro=='always' || $conf->webcal->syncro=='yesbydefault')?' checked':'').'>'; print ''; + $nbtr++; } } } } + + return $nbtr; }