diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-11 00:08:53 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-06-29 21:15:06 +0200 |
commit | e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2 (patch) | |
tree | a09e0a8214097db7924708be5e26605a88293db2 /lib/setup/oci.php | |
parent | 42c44d516568b6a2bea33bcd59dd81cb0654569b (diff) | |
download | nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.tar.gz nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.zip |
Fix found errors
Diffstat (limited to 'lib/setup/oci.php')
-rw-r--r-- | lib/setup/oci.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/setup/oci.php b/lib/setup/oci.php index 56452c65a59..cda7ff7c50c 100644 --- a/lib/setup/oci.php +++ b/lib/setup/oci.php @@ -65,14 +65,14 @@ class OCI extends AbstractDatabase { //add prefix to the oracle user name to prevent collisions $this->dbuser='oc_'.$username; //create a new password so we don't need to store the admin config in the config file - $this->dbpassword=OC_Util::generate_random_bytes(30); + $this->dbpassword=\OC_Util::generate_random_bytes(30); //oracle passwords are treated as identifiers: // must start with aphanumeric char // needs to be shortened to 30 bytes, as the two " needed to escape the identifier count towards the identifier length. $this->dbpassword=substr($this->dbpassword, 0, 30); - $this->createDBUser($this->dbtablespace, $connection); + $this->createDBUser($connection); \OC_Config::setValue('dbuser', $this->dbusername); \OC_Config::setValue('dbname', $this->dbusername); @@ -136,10 +136,9 @@ class OCI extends AbstractDatabase { * * @param String $name * @param String $password - * @param String $tablespace * @param resource $connection */ - private function createDBUser($tablespace, $connection) { + private function createDBUser($connection) { $name = $this->dbuser; $password = $this->password; $query = "SELECT * FROM all_users WHERE USERNAME = :un"; |