This commit is contained in:
raul-bns 2025-08-13 10:24:41 +02:00 committed by GitHub
commit 0564431885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ class Administration extends SugarBean
return;
}
$categoryQuoted = $this->db->quote($category);
$categoryQuoted = $this->db->quoted($category);
// declare a cache for all settings
$settings_cache = sugar_cache_retrieve('admin_settings_cache');
@ -132,7 +132,7 @@ class Administration extends SugarBean
}
if (!empty($category)) {
$query = "SELECT category, name, value FROM {$this->table_name} WHERE category = '$categoryQuoted'";
$query = "SELECT category, name, value FROM {$this->table_name} WHERE category = $categoryQuoted";
} else {
$query = "SELECT category, name, value FROM {$this->table_name}";
}