Update database.php
This commit is contained in:
parent
c150666394
commit
230600c87d
|
@ -313,9 +313,11 @@ if(!check_function_exists("get_bind_to_sql_where")) {
|
||||||
function get_bind_to_sql_where($bind, $excludes=array()) {
|
function get_bind_to_sql_where($bind, $excludes=array()) {
|
||||||
$sql_where = "";
|
$sql_where = "";
|
||||||
|
|
||||||
foreach($bind as $k=>$v) {
|
if(is_array($bind)) {
|
||||||
if(!in_array($k, $excludes)) {
|
foreach($bind as $k=>$v) {
|
||||||
$sql_where .= sprintf(" and %s = :%s", $k, $k);
|
if(!in_array($k, $excludes)) {
|
||||||
|
$sql_where .= sprintf(" and %s = :%s", $k, $k);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user