Interface count for asset
This commit is contained in:
2
lib.php
2
lib.php
@@ -39,7 +39,7 @@ function db_load_enum($table, $column) {
|
||||
WHERE table_name=? AND column_name=?";
|
||||
$sth = $dbh->prepare($sql);
|
||||
$sth->execute([$table, $column]);
|
||||
return array_map(fn($x) => trim($x, "'"), explode(',', $sth->fetch(PDO::FETCH_NUM)));
|
||||
return array_map(fn($x) => trim($x, "'"), explode(',', $sth->fetchColumn()));
|
||||
}
|
||||
|
||||
function db_get_options_asset() {
|
||||
|
||||
Reference in New Issue
Block a user