From 643e3a5b6db19b9ba0210fef89f6ee163bc0edef Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Thu, 20 Aug 2015 12:23:12 +0100 Subject: 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'. --- apps/files_external/lib/ftp.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/files_external/lib/ftp.php') 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; } -- cgit v1.2.3