|
@@ 286-290 (lines=5) @@
|
| 283 |
|
unset($tables->$tableName->$group->$key); |
| 284 |
|
|
| 285 |
|
// remove the table if it's empty |
| 286 |
|
if (!count(get_object_vars($tables->$tableName->$group))) { |
| 287 |
|
$log->addStep("table group '{$tableName}->{$group}' is empty, removing from runtime config", function() use ($tables, $tableName, $group){ |
| 288 |
|
unset($tables->$tableName->$group); |
| 289 |
|
}); |
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
// save the changes |
| 293 |
|
$this->st->saveRuntimeConfig(); |
|
@@ 336-340 (lines=5) @@
|
| 333 |
|
unset($tables->$tableName->$group->$key); |
| 334 |
|
|
| 335 |
|
// remove the table if it's empty |
| 336 |
|
if (!count(get_object_vars($tables->$tableName->$group))) { |
| 337 |
|
$log->addStep("table group '{$tableName}->{$group}' is empty, removing from runtime config", function() use ($tables, $tableName, $group){ |
| 338 |
|
unset($tables->$tableName->$group); |
| 339 |
|
}); |
| 340 |
|
} |
| 341 |
|
} |
| 342 |
|
} |
| 343 |
|
// save the changes |