diff options
Diffstat (limited to 'drivers/adodb-mysqli.inc.php')
| -rw-r--r-- | drivers/adodb-mysqli.inc.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/adodb-mysqli.inc.php b/drivers/adodb-mysqli.inc.php index d894e643..c40e49ae 100644 --- a/drivers/adodb-mysqli.inc.php +++ b/drivers/adodb-mysqli.inc.php @@ -953,7 +953,19 @@ class ADODB_mysqli extends ADOConnection { $table = "$owner.$table"; } - $a_create_table = $this->getRow(sprintf('SHOW CREATE TABLE `%s`', $table)); + $showCreate = $this->getRow( + sprintf('SHOW CREATE TABLE `%s`', $table) + ); + + if ( !$showCreate || !is_array($showCreate) ) { + /* + * Invalid table or owner provided + */ + $this->setFetchMode($savem); + return false; + } + + $a_create_table = array_change_key_case($showCreate, CASE_UPPER); $this->setFetchMode($savem); |
