From 88d3aafef128ab4d381a57fe30224452e24edb19 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 19 Feb 2015 07:59:46 -0500 Subject: [PATCH] bug #4771 Central Columns not working, showing error Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/central_columns.lib.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b5faf09858..e36d489199 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog - bug #4763 Database export with more than 512 tables fails - bug #4769 Previously set column aliases are destroyed if returned to the same table - bug #4752 Incorrect page after creating table +- bug #4771 Central Columns not working, showing error 4.3.9.0 (2015-02-05) - bug #4728 Incorrect headings in routine editor diff --git a/libraries/central_columns.lib.php b/libraries/central_columns.lib.php index 542d4b2a6e..606f274ef8 100644 --- a/libraries/central_columns.lib.php +++ b/libraries/central_columns.lib.php @@ -95,7 +95,11 @@ function PMA_getCentralColumnsCount($db) PMA_Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $db . '\';'; $res = $GLOBALS['dbi']->fetchResult($query); - return $res[0]; + if (isset($res[0])) { + return $res[0]; + } else { + return 0; + } } /** * return the existing columns in central list among the given list of columns