if there is no contact show a warning

This commit is contained in:
Dany De Bontridder 2015-09-15 07:26:13 +02:00
parent 91e9218f30
commit 75953bcf95

View file

@ -51,6 +51,11 @@
<TD>
<?php
if ($g_user->can_write_action($this->ag_id) == true ):
if ( $ag_contact->extra != "" ):
echo $ag_contact->search().$ag_contact->input();
else:
echo _('Pas de catégorie de contact');
endif;
echo $ag_contact->search().$ag_contact->input();
endif;
?>