OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813d8de
)
Revert "FIX:数文字(1~3字)での検索時にLike句の条件に余分な半角スペースが入り、検索結果が得られない不具合を修正"
author
sakamocchi
<o-takashi@sakamocchi.jp>
Sat, 14 Apr 2012 05:48:44 +0000
(14:48 +0900)
committer
sakamocchi
<o-takashi@sakamocchi.jp>
Sat, 14 Apr 2012 05:48:44 +0000
(14:48 +0900)
This reverts commit
a74f3a65f41b0ad177274ba31a53e5c7d4ed8d70
.
nucleus/libs/SEARCH.php
patch
|
blob
|
history
diff --git
a/nucleus/libs/SEARCH.php
b/nucleus/libs/SEARCH.php
index
eb27c16
..
146b5e4
100644
(file)
--- a/
nucleus/libs/SEARCH.php
+++ b/
nucleus/libs/SEARCH.php
@@
-197,7
+197,7
@@
class Search
function boolean_sql_where_short($string,$match){
\r
$match_a = preg_split('#,#',$match);
\r
for($ith=0;$ith<count($match_a);$ith++){
\r
- $like_a[$ith] = " $match_a[$ith] LIKE '%
{$string}
%' ";
\r
+ $like_a[$ith] = " $match_a[$ith] LIKE '%
$string
%' ";
\r
}
\r
$like = implode(" OR ",$like_a);
\r
\r