Update database.php
This commit is contained in:
parent
75e3402971
commit
c150666394
|
@ -405,11 +405,11 @@ if(!check_function_exists("get_bind_to_sql_select")) {
|
||||||
if(check_array_length($opts[1][2], 0) > 0) {
|
if(check_array_length($opts[1][2], 0) > 0) {
|
||||||
$s3a = array();
|
$s3a = array();
|
||||||
foreach($opts[1][2] as $word) {
|
foreach($opts[1][2] as $word) {
|
||||||
$s3a[] = sprintf("%s like '%s'", $s1a[$opts[1][1]], "%{$word}%");
|
$s3a[] = sprintf("%s like '%s'", get_value_in_array($opts[1][1], $s1a, $opts[1][1]), "%{$word}%");
|
||||||
}
|
}
|
||||||
$s3 .= sprintf(" %s (%s)", $opts[0], implode(" and ", $s3a));
|
$s3 .= sprintf(" %s (%s)", $opts[0], implode(" and ", $s3a));
|
||||||
} else {
|
} else {
|
||||||
$s3 .= sprintf(" %s (%s like %s)", $opts[0], $s1a[$opts[1][1]], "'%{$opts[1][2]}%'");
|
$s3 .= sprintf(" %s (%s like %s)", $opts[0], get_value_in_array($opts[1][1], $s1a, $opts[1][1]), "'%{$opts[1][2]}%'");
|
||||||
}
|
}
|
||||||
} elseif($opts[1][0] == "in") {
|
} elseif($opts[1][0] == "in") {
|
||||||
if(check_array_length($opts[1][2], 0) > 0) {
|
if(check_array_length($opts[1][2], 0) > 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user