Fixed new checkstyle issues in ftp.php from build #1341.

remotes/origin/stable5
Diederik de Haas 12 years ago
parent 3cc6df489f
commit 6e6df6e410
  1. 4
      apps/files_external/lib/ftp.php

@ -19,8 +19,8 @@ class OC_FileStorage_FTP extends OC_FileStorage_StreamWrapper{
$this->host=$params['host'];
$this->user=$params['user'];
$this->password=$params['password'];
if(isset($params['secure'])){
if(is_string($params['secure'])){
if(isset($params['secure'])) {
if(is_string($params['secure'])) {
$this->secure = ($params['secure'] === 'true');
}else{
$this->secure = (bool)$params['secure'];

Loading…
Cancel
Save