From 6df5802f97f0f0b17c0f17dff8b51369f1f35684 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 24 Mar 2024 17:10:23 +0100 Subject: [PATCH] Check if saving disabled domains works #1513 --- .../app/libraries/RainLoop/Providers/Domain/DefaultDomain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Domain/DefaultDomain.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Domain/DefaultDomain.php index de2c018c26..b68ee5e038 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Domain/DefaultDomain.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Domain/DefaultDomain.php @@ -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