From eb5e03b43032c73c0eb78486f9cd1c675da336d5 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 1 Dec 2009 21:47:45 +0000 Subject: [PATCH] Proper handling of lower_case_table_names git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1259 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/mysql.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/include/mysql.inc.php b/adminer/include/mysql.inc.php index 46bea635..e3b4b8cf 100644 --- a/adminer/include/mysql.inc.php +++ b/adminer/include/mysql.inc.php @@ -234,9 +234,12 @@ function table_status($name = "") { // ignore internal comment, unnecessary since MySQL 5.1.21 $row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]); } + if (strlen($name)) { + return $row; + } $return[$row["Name"]] = $row; } - return (strlen($name) ? $return[$name] : $return); + return $return; } /** Get status of referencable tables