From 66ec14993ba82a0d977e14de24bf5c47a6db4597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 9 Jan 2008 10:11:55 +0000 Subject: #207868 by cwgordon7, webernet and myself: SQL status page was using wrong property names --- modules/system/system.admin.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index ee5518536..7adbcaab2 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -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 = '

'. t('Command counters') .'

'; -- cgit v1.2.3