Simplify $structPresent

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2024-03-18 17:24:58 +01:00
parent 553ea7bce2
commit 94f0d0578d

View File

@ -120,13 +120,13 @@ class ImportXml extends ImportPlugin
/**
* CREATE code included (by default: no)
*/
$structPresent = false;
$structPresent = isset($namespaces['pma']);
/**
* Retrieve the structure information
*/
$create = [];
if (isset($namespaces['pma'])) {
if ($structPresent) {
/**
* Get structures for all tables
*
@ -154,8 +154,6 @@ class ImportXml extends ImportPlugin
}
}
}
$structPresent = true;
}
/**