Commit 66ec1499 authored by Gábor Hojtsy's avatar Gábor Hojtsy

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

parent 0a26c901
......@@ -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>';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment