X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fcontacts_view.inc;h=fbc657611131082198bb3b53cb7a4bdf33da11b0;hb=26d7ae434469ae407f209ae3c0d3955b29107d95;hp=8ad1496a439483dba84e7f3df20267265473cc1c;hpb=19ddc3939071044c8e94b628f1d6a039f50cc493;p=fa-stable.git diff --git a/includes/ui/contacts_view.inc b/includes/ui/contacts_view.inc index 8ad1496a..fbc65761 100644 --- a/includes/ui/contacts_view.inc +++ b/includes/ui/contacts_view.inc @@ -134,7 +134,7 @@ class contacts extends simple_crud { set_focus('ref'); return false; } - if (count(@$_POST['assgn']) == 0) { + if (count_array(@$_POST['assgn']) == 0) { display_error(_("You have to select at least one category.")); set_focus('assgn'); return false;