OSDN Git Service

tableプロフ再編集デグレ修正
authorCake <cake_67@users.sourceforge.jp>
Sat, 20 Mar 2010 10:57:59 +0000 (19:57 +0900)
committerCake <cake_67@users.sourceforge.jp>
Sat, 20 Mar 2010 10:57:59 +0000 (19:57 +0900)
app/views/helpers/profiledisp.php

index 4d09845..81bfc1d 100644 (file)
@@ -542,16 +542,15 @@ class ProfiledispHelper extends Helper {
                        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) {