diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-11 00:49:45 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-11 00:49:45 +0200 |
commit | ec255b52be2533e77214737c116ff97c18519d75 (patch) | |
tree | 8e6d79e9e00a44eed3d83c61071e9abc0dfd7a45 /apps | |
parent | d63ca25a946f2b520ae9f0f2cd498c7247f3522a (diff) | |
download | nextcloud-server-ec255b52be2533e77214737c116ff97c18519d75.tar.gz nextcloud-server-ec255b52be2533e77214737c116ff97c18519d75.zip |
fixing boolean handling
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/irods.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/irods.php b/apps/files_external/lib/irods.php index 6c7e5278ed0..c6f002ffd22 100644 --- a/apps/files_external/lib/irods.php +++ b/apps/files_external/lib/irods.php @@ -32,7 +32,7 @@ class iRODS extends \OC\Files\Storage\StreamWrapper{ $this->port = isset($params['port']) ? $params['port'] : 1247; $this->user = isset($params['user']) ? $params['user'] : ''; $this->password = isset($params['password']) ? $params['password'] : ''; - $this->use_logon_credentials = $params['use_logon_credentials']; + $this->use_logon_credentials = $params['use_logon_credentials'] === 'true' ? true : false; $this->zone = $params['zone']; $this->auth_mode = isset($params['auth_mode']) ? $params['auth_mode'] : ''; @@ -42,7 +42,7 @@ class iRODS extends \OC\Files\Storage\StreamWrapper{ } // take user and password from the session - if ($this->use_logon_credentials === "true" && \OC::$session->exists('irods-credentials')) + if ($this->use_logon_credentials && \OC::$session->exists('irods-credentials')) { $params = \OC::$session->get('irods-credentials'); $this->user = $params['uid']; |