Trying to access array offset on value of type bool. Fixed.
[fa-stable.git] / includes / ui / contacts_view.inc
index 8ad1496a439483dba84e7f3df20267265473cc1c..23474adc9e32aca2d66b90f06189569d24a13f87 100644 (file)
@@ -48,7 +48,7 @@ class contacts extends simple_crud {
                        while ($last)
                        {
                                        
-                               if ($myrow['id'] != $last['id']) {
+                               if (@$myrow['id'] != $last['id']) {
                                        alt_table_row_color($k);
                                        label_cell(implode('<br>',$description));
                                        label_cell($last["ref"]);
@@ -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;