Skip to content

Commit

Permalink
Check if saving disabled domains works #1513
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Mar 24, 2024
1 parent b3c1019 commit 6df5802
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -171,8 +171,9 @@ public function Disable(string $sName, bool $bDisable) : bool
$aResult = \array_filter($aResult, fn($v) => $v !== $sName);
}
\RainLoop\Utils::saveFile($this->sDomainPath.'/disabled', \implode("\n", \array_unique($aResult)));
return $this->getDisabled() === $aResult;
}
return true;
return false;
}

public function Delete(string $sName) : bool
Expand Down

0 comments on commit 6df5802

Please sign in to comment.