summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-11 00:49:45 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-11 00:49:45 +0200
commitec255b52be2533e77214737c116ff97c18519d75 (patch)
tree8e6d79e9e00a44eed3d83c61071e9abc0dfd7a45 /apps/files_external
parentd63ca25a946f2b520ae9f0f2cd498c7247f3522a (diff)
downloadnextcloud-server-ec255b52be2533e77214737c116ff97c18519d75.tar.gz
nextcloud-server-ec255b52be2533e77214737c116ff97c18519d75.zip
fixing boolean handling
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/irods.php4
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'];