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"]);
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;