config.default.inc error on startup. Fixed by @apmuthu.
[fa-stable.git] / includes / ui / contacts_view.inc
index 8ad1496a439483dba84e7f3df20267265473cc1c..fbc657611131082198bb3b53cb7a4bdf33da11b0 100644 (file)
@@ -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;