]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing boolean handling
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 10 Sep 2013 22:49:45 +0000 (00:49 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 10 Sep 2013 22:49:45 +0000 (00:49 +0200)
apps/files_external/lib/irods.php

index 6c7e5278ed05068fbb7a21fbdabc0645d4060cba..c6f002ffd22ea2d26ba2c31c36660c6f37e61e2f 100644 (file)
@@ -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'];