Update database.php

This commit is contained in:
Namhyeon Go 2019-11-17 22:38:06 +09:00 committed by GitHub
parent 5fcdfc0f03
commit a653aef496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,9 +346,7 @@ if(!check_function_exists("get_bind_to_sql_where")) {
$sp = ""; $sp = "";
$excludes = get_value_in_array("excludes", $options, array()); $excludes = get_value_in_array("excludes", $options, array());
if(get_old_version() == "1.5") {
// compatible version 1.5
if(array_key_equals("compatible", $_options, "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;