diff --git a/ChangeLog b/ChangeLog index f9e0461cee..b54e167c50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -64,6 +64,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 6e5ab8a400..380a4a1e8f 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