Update database.php

This commit is contained in:
Namhyeon Go 2019-04-08 00:02:09 +09:00 committed by GitHub
parent 4016fe37d3
commit 86be63f7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,7 @@ if(!check_function_exists("get_bind_to_sql_select")) {
$sql = "select %s from %s where 1 %s %s %s"; $sql = "select %s from %s where 1 %s %s %s";
// s1: select fields // s1: select fields
$s1 = "*"; $s1 = "";
if(!array_key_empty("fieldnames", $options)) { if(!array_key_empty("fieldnames", $options)) {
$s1 .= (count($options['fieldnames']) > 0) ? implode(", ", $options['fieldnames']) : "*"; $s1 .= (count($options['fieldnames']) > 0) ? implode(", ", $options['fieldnames']) : "*";
} elseif(array_key_equals("getcnt", $options, true)) { } elseif(array_key_equals("getcnt", $options, true)) {