Fix payment server: remove global conRide to prevent crashing non-ride DB queries

This commit is contained in:
Hamza-Ayed
2026-08-01 18:28:30 +03:00
parent 998cad6756
commit f7df080b27
5 changed files with 175 additions and 72 deletions
-6
View File
@@ -53,12 +53,6 @@ class Database
$cfg = self::$map[$name];
$dbname = getenv($cfg['name']);
// 🔥 OVERRIDE: Prevent crash if .env on server still has the old wrong name
if ($name === 'ride' && $dbname === 'intaleq-ridesDB') {
$dbname = 'rideDB';
}
$host = getenv($cfg['host']) ?: 'localhost';
$user = getenv($cfg['user']);
$pass = getenv($cfg['pass']);