mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
6daea857ab
commit
94fe48c998
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue