aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-02-20 14:40:50 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-23 16:57:53 +0100
commitc8c4dd637f44704dd685a6dd43ee138a448a8236 (patch)
tree866f1ccdc67c2e1b5a308b5e25e734eb6fb55ceb /lib
parente0251ea24e581b1841da520d9668bcd3909a53fe (diff)
downloadnextcloud-server-c8c4dd637f44704dd685a6dd43ee138a448a8236.tar.gz
nextcloud-server-c8c4dd637f44704dd685a6dd43ee138a448a8236.zip
fix(OCC): Don't throw in the repair step for phone validation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/NC21/ValidatePhoneNumber.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Repair/NC21/ValidatePhoneNumber.php b/lib/private/Repair/NC21/ValidatePhoneNumber.php
index f9c3c5952bf..b3534dbeae8 100644
--- a/lib/private/Repair/NC21/ValidatePhoneNumber.php
+++ b/lib/private/Repair/NC21/ValidatePhoneNumber.php
@@ -55,7 +55,8 @@ class ValidatePhoneNumber implements IRepairStep {
public function run(IOutput $output): void {
if ($this->config->getSystemValueString('default_phone_region', '') === '') {
- throw new \Exception('Can not validate phone numbers without `default_phone_region` being set in the config file');
+ $output->warning('Can not validate phone numbers without `default_phone_region` being set in the config file');
+ return;
}
$numUpdated = 0;