Update config.php

This commit is contained in:
lizandrogd
2026-01-21 01:31:25 -05:00
parent 87b89b52a5
commit ac44946eea
+1 -1
View File
@@ -83,7 +83,7 @@ function getConfigFromDB($key, $default = null) {
$tableExists = $pdo->query("SHOW TABLES LIKE 'system_config'")->rowCount() > 0;
if ($tableExists) {
$stmt = $pdo->query("SELECT config_key, config_value FROM system_config");
$stmt = $pdo->query("SELECT config_key, config_value FROM system_config WHERE config_key = " . $pdo->quote($key));
$configs = [];
while ($row = $stmt->fetch()) {
$configs[$row['config_key']] = $row['config_value'];