Skip to content
Snippets Groups Projects
Commit 66ec1499 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#207868 by cwgordon7, webernet and myself: SQL status page was using wrong property names

parent 0a26c901
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1767,13 +1767,15 @@ function _system_sql($data, $keys) {
}
/**
* Menu callback: return information about PHP.
* Menu callback: return information about the database.
*/
function system_sql() {
$result = db_query("SHOW STATUS");
while ($entry = db_fetch_object($result)) {
$data[$entry->variable_name] = $entry->value;
// 'SHOW STATUS' returns fields named 'Variable_name' and 'Value',
// case is important.
$data[$entry->Variable_name] = $entry->Value;
}
$output = '<h2>'. t('Command counters') .'</h2>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment