if (!empty($profile['CharactersHasProfile'])) {
$this->disp_form_td4characters_has_profiles($profile['CharactersHasProfile']);
- } else {
- if (intval($form_num) > 0) {
- for ($i=0; $i<$form_num; $i++) {
- $this->disp_form4profile_tables($profile['ProfileTable'], null, null, true);
- }
- }
- if (intval($table_blank) > 0 && $profile['profile_type'] != 's-table') {
- $this->disp_blank_td4profile_tables($profile['ProfileTable'], intval($table_blank));
+ }
+ if (intval($form_num) > 0 && ($profile['profile_type'] != 's-table' || empty($profile['CharactersHasProfile']))) {
+ for ($i=0; $i<$form_num; $i++) {
+ $this->disp_form4profile_tables($profile['ProfileTable'], null, null, true);
}
}
+ if (intval($table_blank) > 0 && $profile['profile_type'] != 's-table') {
+ $this->disp_blank_td4profile_tables($profile['ProfileTable'], intval($table_blank));
+ }
echo '</tbody>';
echo '</table>';
if ($disp_add_link) {