Update database.php
This commit is contained in:
parent
38ca5cfa61
commit
156aa6ed6b
|
@ -523,7 +523,7 @@ if(!check_function_exists("get_db_tablenames")) {
|
||||||
$sql = sprintf("select table_name from `%s.tables` order by datetime desc", $tablename);
|
$sql = sprintf("select table_name from `%s.tables` order by datetime desc", $tablename);
|
||||||
$rows = exec_db_fetch_all($sql);
|
$rows = exec_db_fetch_all($sql);
|
||||||
foreach($rows as $row) {
|
foreach($rows as $row) {
|
||||||
$tablenames[] = $row['table_name']
|
$tablenames[] = $row['table_name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -690,9 +690,9 @@ if(!check_function_exists("get_bind_to_sql_update")) {
|
||||||
$setkeys = get_array(get_value_in_array("setkeys", $options, false));
|
$setkeys = get_array(get_value_in_array("setkeys", $options, false));
|
||||||
foreach($bind as $k=>$v) {
|
foreach($bind as $k=>$v) {
|
||||||
if(in_array($k, $setkeys)) {
|
if(in_array($k, $setkeys)) {
|
||||||
$_bind_K[$k] => $v;
|
$_bind_K[$k] = $v;
|
||||||
} else {
|
} else {
|
||||||
$_bind_V[$k] => $v;
|
$_bind_V[$k] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user