From 94fe48c99857fb685abc69e3dd7aad1446398573 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 15 Jan 2024 15:44:49 -0100 Subject: [PATCH] small fixes Signed-off-by: Maxence Lange --- core/Command/Config/App/SetConfig.php | 2 +- lib/private/AppConfig.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php index 35f2ba600a6..aad31c85048 100644 --- a/core/Command/Config/App/SetConfig.php +++ b/core/Command/Config/App/SetConfig.php @@ -144,7 +144,7 @@ class SetConfig extends Base { */ try { $currType = $this->appConfig->getValueType($appName, $configName); - if ($typeString === null || $type === $currType || !$this->ask($input, $output, $typeString)) { + if ($type === null || $typeString === null || $type === $currType || !$this->ask($input, $output, $typeString)) { $type = $currType; } else { $updated = $this->appConfig->updateType($appName, $configName, $type); diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 94a8fae3081..e8192530c17 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -575,8 +575,8 @@ class AppConfig implements IAppConfig { bool $lazy = false, bool $sensitive = false ): bool { - if ($value > 2147400000) { - $this->logger->debug('You are trying to store an integer value around/above 2,147,483,647. This is a reminder that reaching this theoretical limit on 32 bits system will result to an exception.'); + if ($value > 2000000000) { + $this->logger->debug('You are trying to store an integer value around/above 2,147,483,647. This is a reminder that reaching this theoretical limit on 32 bits system will throw an exception.'); } return $this->setTypedValue( -- 2.39.5