Refactor: Coderabbit suggestions

This commit is contained in:
Squidly271
2025-02-24 16:51:37 -05:00
committed by GitHub
parent 5503affa44
commit 78decb4597

View File

@@ -15,8 +15,7 @@ foreach ($autostart as $container) {
}
$doc = new DOMDocument();
$doc->load("/boot/config/plugins/dockerMan/templates-user/my-{$cont[0]}.xml");
if ( ! $doc ) {
if (!$doc->load("/boot/config/plugins/dockerMan/templates-user/my-{$cont[0]}.xml")) {
$newAuto[] = $container;
continue;
}