Webgui: fix and improve cables and fuses

This commit is contained in:
thooge committed 2026-08-29 14:27:16 +02:00
1 parent ac4b994398
commit 125a7bba56
4 files changed
+37 -16

No files matched your search

+2 -1
View File
@@ -945,7 +945,8 @@ function db_get_opt_cable($vid, $default=NULL) {
$list = array();
}
$sql = "SELECT cableid, cablename FROM cable WHERE vid=? ORDER BY cablename";
$sth = $pdo->query($sql);
$sth = $pdo->prepare($sql);
$sth->execute([$vid]);
foreach ($sth->fetchAll(PDO::FETCH_NUM) as $row) {
$list[$row[0]] = h($row[1]);
}