From 76731a6eb8dea1ce2fbfb38e787d8f0da06b6f1f Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Fri, 9 Dec 2005 17:43:06 +0000 Subject: [PATCH] fixed BC for PMA_DBI_get_fields() --- libraries/database_interface.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index a4b1c66db..55dd94209 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -601,6 +601,9 @@ function PMA_DBI_get_fields($database, $table, $link = null) 'SHOW FULL COLUMNS FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table), null, null, $link); + if ( ! is_array($fields) || count($fields) < 1 ) { + return false; + } return $fields; }