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:
46ecbaf
)
FIX:数文字(1~3字)での検索時にLike句の条件に余分な半角スペースが入り、検索結果が得られない不具合を修正
author
reine
<reine@users.sourceforge.jp>
Fri, 13 Apr 2012 18:21:52 +0000
(
03:21
+0900)
committer
reine
<reine@users.sourceforge.jp>
Fri, 13 Apr 2012 18:21:52 +0000
(
03:21
+0900)
nucleus/libs/SEARCH.php
patch
|
blob
|
history
diff --git
a/nucleus/libs/SEARCH.php
b/nucleus/libs/SEARCH.php
index
146b5e4
..
eb27c16
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