if ($type == 'thread') { $checktags = split_tag_list($post['taglist']); if (!count($checktags)) $errors[] = "At least one tag is required."; }