From 56476bc74df455405bd331ad82d0a88404c9b155 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 3 May 2011 14:26:55 +0200 Subject: [PATCH] Make sure $limit is initialized --- libraries/database_interface.lib.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index 842b891a8..22d9671e9 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -282,7 +282,7 @@ function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = fals SELECT *, `TABLE_SCHEMA` AS `Db`, `TABLE_NAME` AS `Name`, - `TABLE_TYPE` ÀS `TABLE_TYPE`, + `TABLE_TYPE` AS `TABLE_TYPE`, `ENGINE` AS `Engine`, `ENGINE` AS `Type`, `VERSION` AS `Version`, @@ -479,7 +479,7 @@ function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = fals * returns array with databases containing extended infos about them * * @todo move into PMA_List_Database? - * @param string $databases database + * @param string $database database * @param boolean $force_stats retrieve stats also for MySQL < 5 * @param resource $link mysql link * @param string $sort_by column to order by @@ -508,9 +508,8 @@ function PMA_DBI_get_databases_full($database = null, $force_stats = false, * if $GLOBALS['cfg']['NaturalOrder'] is enabled, we cannot use LIMIT * cause MySQL does not support natural ordering, we have to do it afterward */ - if ($GLOBALS['cfg']['NaturalOrder']) { - $limit = ''; - } else { + $limit = ''; + if (!$GLOBALS['cfg']['NaturalOrder']) { if ($limit_count) { $limit = ' LIMIT ' . $limit_count . ' OFFSET ' . $limit_offset; }