OSDN Git Service
(root)
/
hengband
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e3447
)
[feature]性別での検索に対応
author
Habu
<habu@users.sourceforge.jp>
Thu, 29 Mar 2018 12:39:51 +0000
(21:39 +0900)
committer
Habu
<habu@users.sourceforge.jp>
Thu, 29 Mar 2018 12:39:51 +0000
(21:39 +0900)
score/db_common.inc
patch
|
blob
|
history
diff --git
a/score/db_common.inc
b/score/db_common.inc
index
ed4ca8b
..
d6144e9
100644
(file)
--- a/
score/db_common.inc
+++ b/
score/db_common.inc
@@
-101,6
+101,14
@@
class ScoreDB
}
}
+ foreach (['sex'] as $key_column) {
+ $val = filter_input(INPUT_GET, $key_column, FILTER_VALIDATE_INT);
+ if ($val !== FALSE && $val !== NULL) {
+ $wheres[] = "{$key_column} = :{$key_column}";
+ $params[":{$key_column}"] = $val;
+ }
+ }
+
foreach (['killer'] as $key_column) {
$val = filter_input(INPUT_GET, $key_column);
if ($val !== NULL && strlen($val) > 0) {