Skip to content

Commit

Permalink
Fix errors when database has no tables
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jun 15, 2018
1 parent 04fe7d0 commit 057c6fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/classes/Database/Designer/Common.php
Expand Up @@ -55,7 +55,15 @@ public function getTablesInfo()
$GLOBALS['designer']['TABLE_NAME'] = [];// that foreach no error
$GLOBALS['designer']['OWNER'] = [];
$GLOBALS['designer']['TABLE_NAME_SMALL'] = [];
$GLOBALS['designer']['TABLE_TYPE'] = [];

$GLOBALS['designer_url']['TABLE_NAME'] = [];
$GLOBALS['designer_url']['OWNER'] = [];
$GLOBALS['designer_url']['TABLE_NAME_SMALL'] = [];

$GLOBALS['designer_out']['TABLE_NAME'] = [];
$GLOBALS['designer_out']['OWNER'] = [];
$GLOBALS['designer_out']['TABLE_NAME_SMALL'] = [];
$tables = $this->dbi->getTablesFull($GLOBALS['db']);
// seems to be needed later
$this->dbi->selectDb($GLOBALS['db']);
Expand Down

0 comments on commit 057c6fa

Please sign in to comment.