]> source.dussan.org Git - nextcloud-server.git/commitdiff
small fixes 41755/head
authorMaxence Lange <maxence@artificial-owl.com>
Mon, 15 Jan 2024 16:44:49 +0000 (15:44 -0100)
committerMaxence Lange <maxence@artificial-owl.com>
Mon, 15 Jan 2024 16:45:13 +0000 (15:45 -0100)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
core/Command/Config/App/SetConfig.php
lib/private/AppConfig.php

index 35f2ba600a6e355291fe0779af46528ff6d71814..aad31c85048b0e2b3577c46eec39ed3a5dd2f912 100644 (file)
@@ -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);
index 94a8fae3081eb6f8e40aed22bfb7c0f1b0f9454a..e8192530c179954687c1589445c4eca12f67517a 100644 (file)
@@ -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(