Update database.php
This commit is contained in:
parent
5fcdfc0f03
commit
a653aef496
|
@ -344,11 +344,9 @@ if(!check_function_exists("get_bind_to_sql_where")) {
|
||||||
function get_bind_to_sql_where($bind, $options=array(), $_options=array()) {
|
function get_bind_to_sql_where($bind, $options=array(), $_options=array()) {
|
||||||
$s3 = "";
|
$s3 = "";
|
||||||
$sp = "";
|
$sp = "";
|
||||||
|
|
||||||
$excludes = get_value_in_array("excludes", $options, array());
|
|
||||||
|
|
||||||
// compatible version 1.5
|
$excludes = get_value_in_array("excludes", $options, array());
|
||||||
if(array_key_equals("compatible", $_options, "1.5")) {
|
if(get_old_version() == "1.5") {
|
||||||
$excludes = $options;
|
$excludes = $options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,7 +601,7 @@ if(!check_function_exists("get_bind_to_sql_update")) {
|
||||||
$_bind = array();
|
$_bind = array();
|
||||||
|
|
||||||
// compatible version 1.5
|
// compatible version 1.5
|
||||||
if(array_key_equals("compatible", $_options, "1.5")) {
|
if(get_old_version() == "1.5") {
|
||||||
foreach($options as $k=>$v) {
|
foreach($options as $k=>$v) {
|
||||||
if($v == true) {
|
if($v == true) {
|
||||||
$excludes[] = $k;
|
$excludes[] = $k;
|
||||||
|
@ -611,7 +609,7 @@ if(!check_function_exists("get_bind_to_sql_update")) {
|
||||||
}
|
}
|
||||||
$options = $_options;
|
$options = $_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
// setkeys
|
// setkeys
|
||||||
if(!array_key_empty("setkeys", $options)) {
|
if(!array_key_empty("setkeys", $options)) {
|
||||||
$setkeys = $options['setkeys'];
|
$setkeys = $options['setkeys'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user