aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-01-15 15:44:49 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-01-15 15:45:13 -0100
commit94fe48c99857fb685abc69e3dd7aad1446398573 (patch)
tree88fe2516712a2d8f5fe5e613561c7e376c7dde0d
parent6daea857ab286aae98120bf7d1e1034aeaa44bca (diff)
downloadnextcloud-server-94fe48c99857fb685abc69e3dd7aad1446398573.tar.gz
nextcloud-server-94fe48c99857fb685abc69e3dd7aad1446398573.zip
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--core/Command/Config/App/SetConfig.php2
-rw-r--r--lib/private/AppConfig.php4
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(