OSDN Git Service

[fix]魔法領域検索のキー名を修正
authorHabu <habu@users.sourceforge.jp>
Wed, 18 Apr 2018 15:27:54 +0000 (00:27 +0900)
committerHabu <habu@users.sourceforge.jp>
Wed, 18 Apr 2018 15:27:54 +0000 (00:27 +0900)
score/custom_search.php
score/db_common.inc

index dab71ac..cbdd398 100644 (file)
@@ -49,9 +49,9 @@ print_select_form($fp, $defines['personality'], 'personality_id');
 fwrite($fp, "</p>\n");
 
 fwrite($fp, "<p>\n");
-fwrite($fp, "<label for=\"realm_id1\">領域1:</label>");
+fwrite($fp, "<label for=\"realm1_id\">領域1:</label>");
 print_select_form($fp, $defines['realm'], 'realm_id1');
-fwrite($fp, " <label for=\"realm_id2\">領域2:</label>");
+fwrite($fp, " <label for=\"realm2_id\">領域2:</label>");
 print_select_form($fp, $defines['realm'], 'realm_id2');
 fwrite($fp, "</p>\n");
 
index 95c4d1a..e4223e3 100644 (file)
@@ -94,7 +94,7 @@ class ScoreDB
             }
         }
 
-        foreach (['realm_id1', 'realm_id2'] as $idx => $key_column) {
+        foreach (['realm1_id', 'realm2_id'] as $idx => $key_column) {
             $val = filter_input(INPUT_GET, $key_column, FILTER_VALIDATE_INT);
             if ($val > 0) {
                 $seq = $idx + 1;
@@ -492,7 +492,7 @@ WHERE
   personality_name = :personality
 EOM
         );
+
         $realm_insert_stmt = $this->dbh->prepare(
             <<<EOM
 INSERT INTO score_realms