Fix Bad vars in PAyment Providers listing, add check to see if payment provider already exists

This commit is contained in:
johnnyq
2025-08-27 16:27:54 -04:00
parent d584c6b1e8
commit 535078b0ab
5 changed files with 16 additions and 8 deletions

View File

@@ -3923,7 +3923,7 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
}
if (CURRENT_DATABASE_VERSION == '2.3.0') {
// Payment Methods from Categories Table to new payment_methods table
// Migrate Payment Methods from Categories Table to new payment_methods table
$sql_categories = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Payment Method' AND category_name != 'Stripe' AND category_archived_at IS NULL");
while ($row = mysqli_fetch_array($sql_categories)) {