diff options
author | Piotr Przybylski <piotrprz@gmail.com> | 2011-08-05 03:15:37 +0400 |
---|---|---|
committer | Piotr Przybylski <piotrprz@gmail.com> | 2011-08-05 03:15:37 +0400 |
commit | 6fe137e68dc1a5ed97dafd2864e8e2fda5937a96 (patch) | |
tree | 8ad53d12425c93ca2a43f094426d848ec684860a /libraries/database_interface.lib.php | |
parent | c64564baf77a99fc944560e6898b57214262062d (diff) |
PMA_DBI_get_columns - return null when there are no columns (server synchronize depends on this behavior)
Diffstat (limited to 'libraries/database_interface.lib.php')
-rw-r--r-- | libraries/database_interface.lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index 4490a2c481..54b4af385d 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -841,8 +841,8 @@ function PMA_DBI_get_columns($database, $table, $full = false, $link = null) 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table), 'Field', null, $link); - if (! is_array($fields) || count($fields) < 1) { - return false; + if (! is_array($fields) || count($fields) == 0) { + return null; } return $fields; } |