소스 검색

Merge pull request #42833 from nextcloud/enh/noid/set-boolean-config

small improvement on occ app:config:set
tags/v29.0.0beta1
Ferdinand Thiessen 4 달 전
부모
커밋
be049ba6b3
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      core/Command/Config/App/SetConfig.php

+ 2
- 2
core/Command/Config/App/SetConfig.php 파일 보기

@@ -207,9 +207,9 @@ class SetConfig extends Base {
break;

case IAppConfig::VALUE_BOOL:
if (strtolower($value) === 'true') {
if (in_array(strtolower($value), ['true', '1', 'on', 'yes'])) {
$valueBool = true;
} elseif (strtolower($value) === 'false') {
} elseif (in_array(strtolower($value), ['false', '0', 'off', 'no'])) {
$valueBool = false;
} else {
throw new AppConfigIncorrectTypeException('Value is not a boolean, please use \'true\' or \'false\'');

Loading…
취소
저장