Interface count for asset

This commit is contained in:
2023-02-24 14:46:24 +01:00
parent 6c9a169600
commit 42e327776c
14 changed files with 133 additions and 18 deletions

View File

@@ -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() {