Merge branch 'feature/editable-payment-methods' of https://github.com/ttam/Wallos into ttam-feature/editable-payment-methods

This commit is contained in:
ellite
2023-11-16 18:26:28 +01:00
7 changed files with 113 additions and 4 deletions
+3 -2
View File
@@ -17,8 +17,9 @@
}
$payment_methods = array();
$query = "SELECT * FROM payment_methods";
$result = $db->query($query);
$query = $db->prepare("SELECT * FROM payment_methods WHERE enabled=:enabled");
$query->bindValue(':enabled', 1, SQLITE3_INTEGER);
$result = $query->execute();
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
$payment_methodId = $row['id'];
$payment_methods[$payment_methodId] = $row;