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/mysql.php | |
parent | 42c44d516568b6a2bea33bcd59dd81cb0654569b (diff) | |
download | nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.tar.gz nextcloud-server-e93ce26f27fa8c2c364696a7a7ce5122eb4a91e2.zip |
Fix found errors
Diffstat (limited to 'lib/setup/mysql.php')
-rw-r--r-- | lib/setup/mysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/setup/mysql.php b/lib/setup/mysql.php index aa0344f686c..1ab1b6ea8ae 100644 --- a/lib/setup/mysql.php +++ b/lib/setup/mysql.php @@ -23,7 +23,7 @@ class MySQL extends AbstractDatabase { $this->dbuser=substr('oc_'.$username, 0, 16); if($this->dbuser!=$oldUser) { //hash the 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); @@ -46,7 +46,7 @@ class MySQL extends AbstractDatabase { //fill the database if needed $query='select count(*) from information_schema.tables' - ." where table_schema='".$this->dbname."' AND table_name = '".$this->dbtableprefix."users';"; + ." where table_schema='".$this->dbname."' AND table_name = '".$this->tableprefix."users';"; $result = mysql_query($query, $connection); if($result) { $row=mysql_fetch_row($result); |