diff --git a/pandora_console/extras/pandora_diag.php b/pandora_console/extras/pandora_diag.php index 3ecb75a806..5eff93bc65 100644 --- a/pandora_console/extras/pandora_diag.php +++ b/pandora_console/extras/pandora_diag.php @@ -173,19 +173,19 @@ switch ($config["dbtype"]) { WHERE \"key\" = 'current_update'", "Current Update #"); break; case "oracle": - render_info_data ("SELECT " . db_escape_key_identifier('value') . - " FROM tconfig + render_info_data ("SELECT value + FROM tconfig WHERE token = 'db_scheme_version'", "DB Schema Version"); - render_info_data ("SELECT " . db_escape_key_identifier('value') . - " FROM tconfig + render_info_data ("SELECT value + FROM tconfig WHERE token = 'db_scheme_build'", "DB Schema Build"); - render_info_data ("SELECT " . db_escape_key_identifier('value') . - " FROM tconfig + render_info_data ("SELECT value + FROM tconfig WHERE token = 'enterprise_installed'", "Enterprise installed"); - render_row (db_get_sql ("SELECT " . db_escape_key_identifier('value') . - " FROM tconfig + render_row (db_get_sql ("SELECT value + FROM tconfig WHERE token = 'db_maintance'"), "PandoraDB Last run"); - + render_info_data ("SELECT " . db_escape_key_identifier('value') . " FROM tupdate_settings WHERE \"key\" = 'customer_key'", "Update Key");