diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 12:23:12 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 12:23:12 +0100 |
commit | 643e3a5b6db19b9ba0210fef89f6ee163bc0edef (patch) | |
tree | 1406164f94b09de42e8508e99d081bb9563fd2a9 /apps/files_external/lib/ftp.php | |
parent | 62d328525a264015ba1f7035aed2e75de69f5cdd (diff) | |
download | nextcloud-server-643e3a5b6db19b9ba0210fef89f6ee163bc0edef.tar.gz nextcloud-server-643e3a5b6db19b9ba0210fef89f6ee163bc0edef.zip |
Convert string booleans to real booleans
Legacy compatibility, from the days in stable8 when checkbox boolean
values were stored as the strings 'true' and 'false'.
Diffstat (limited to 'apps/files_external/lib/ftp.php')
-rw-r--r-- | apps/files_external/lib/ftp.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files_external/lib/ftp.php b/apps/files_external/lib/ftp.php index aeca17c4f4c..f3631e53fa1 100644 --- a/apps/files_external/lib/ftp.php +++ b/apps/files_external/lib/ftp.php @@ -45,11 +45,7 @@ class FTP extends \OC\Files\Storage\StreamWrapper{ $this->user=$params['user']; $this->password=$params['password']; if (isset($params['secure'])) { - if (is_string($params['secure'])) { - $this->secure = ($params['secure'] === 'true'); - } else { - $this->secure = (bool)$params['secure']; - } + $this->secure = $params['secure']; } else { $this->secure = false; } |