Update database.php
This commit is contained in:
parent
ed624a586f
commit
a029d3baac
|
@ -450,7 +450,11 @@ if(!check_function_exists("get_bind_to_sql_where")) {
|
||||||
// set start prefix
|
// set start prefix
|
||||||
$s3 = trim($s3);
|
$s3 = trim($s3);
|
||||||
$s3a = explode(" ", $s3);
|
$s3a = explode(" ", $s3);
|
||||||
|
if(in_array($s3a[0], array("and", "or"))) {
|
||||||
$sp = ($s3a[0] == "and" ? "1" : "0");
|
$sp = ($s3a[0] == "and" ? "1" : "0");
|
||||||
|
} else {
|
||||||
|
$sp = "1";
|
||||||
|
}
|
||||||
|
|
||||||
return sprintf("%s %s", $sp, $s3);
|
return sprintf("%s %s", $sp, $s3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user