Skip to content

Commit

Permalink
Accept table with name 0 in getTablesFull
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
  • Loading branch information
kamil-tekiela committed Mar 14, 2023
1 parent 282dc9a commit d7f599d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/classes/DatabaseInterface.php
Expand Up @@ -487,10 +487,10 @@ static function ($a, $b) {
// this is why we fall back to SHOW TABLE STATUS even for MySQL >= 50002
if ($tables === []) {
$sql = 'SHOW TABLE STATUS FROM ' . Util::backquote($database);
if ($table || ($tbl_is_group === true) || $table_type) {
if (($table !== '' && $table !== []) || ($tbl_is_group === true) || $table_type) {
$sql .= ' WHERE';
$needAnd = false;
if ($table || ($tbl_is_group === true)) {
if (($table !== '' && $table !== []) || ($tbl_is_group === true)) {
if (is_array($table)) {
$sql .= ' `Name` IN (\''
. implode(
Expand Down

0 comments on commit d7f599d

Please sign in to comment.