Fix bug preventing disabling tracking feature

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-04-03 12:22:31 +01:00
parent ee9c9a0300
commit e7717ed186

View File

@ -1626,6 +1626,11 @@ class Relation
$createQueries = null;
$foundOne = false;
foreach ($tablesToFeatures as $table => $feature) {
if (($GLOBALS['cfg']['Server'][$feature] ?? null) === false) {
// The feature is disabled by the user in config
continue;
}
// Check if the table already exists
// use the possible replaced name first and fallback on the table name
// if no replacement exists