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/postgresql.php | |
parent | 42c44d516568b6a2bea33bcd59dd81cb0654569b (diff) | |
download | nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.tar.gz nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.zip |
Fix found errors
Diffstat (limited to 'lib/setup/postgresql.php')
-rw-r--r-- | lib/setup/postgresql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/setup/postgresql.php b/lib/setup/postgresql.php index 67e4f901a91..d5b135a9577 100644 --- a/lib/setup/postgresql.php +++ b/lib/setup/postgresql.php @@ -33,7 +33,7 @@ class PostgreSQL extends AbstractDatabase { //add prefix to the postgresql 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); $this->createDBUser($connection); @@ -69,7 +69,7 @@ class PostgreSQL extends AbstractDatabase { throw new \DatabaseSetupException($this->trans->t('PostgreSQL username and/or password not valid'), $this->trans->t('You need to enter either an existing account or the administrator.')); } - $query = "select count(*) FROM pg_class WHERE relname='".$this->dbtableprefix."users' limit 1"; + $query = "select count(*) FROM pg_class WHERE relname='".$this->tableprefix."users' limit 1"; $result = pg_query($connection, $query); if($result) { $row = pg_fetch_row($result); |