summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2019-04-22 19:57:11 -0300
committerVitor Mattos <vitor@php.rio>2019-04-22 19:57:11 -0300
commit35465ca90c9a7e90e0836fd9def62b0e7a6bf81c (patch)
tree07af1dc4e8dea344d6fad980dbb8f69b530f5b02 /lib/private/Setup
parent4d187ce1d7ebaa8bc26055e6e85796dc39386e8e (diff)
downloadnextcloud-server-35465ca90c9a7e90e0836fd9def62b0e7a6bf81c.tar.gz
nextcloud-server-35465ca90c9a7e90e0836fd9def62b0e7a6bf81c.zip
solve code review
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/private/Setup')
-rw-r--r--lib/private/Setup/PostgreSQL.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php
index 9bd4e57f60f..6d1b5ca2927 100644
--- a/lib/private/Setup/PostgreSQL.php
+++ b/lib/private/Setup/PostgreSQL.php
@@ -155,7 +155,7 @@ class PostgreSQL extends AbstractDatabase {
$query = $connection->prepare("CREATE USER " . addslashes($this->dbUser) . " CREATEDB PASSWORD '" . addslashes($this->dbPassword) . "'");
$query->execute();
if ($this->databaseExists($connection)) {
- $query = $connection->prepare('GRANT CONNECT ON DATABASE ' . $this->dbName . ' TO '.addslashes($this->dbUser));
+ $query = $connection->prepare('GRANT CONNECT ON DATABASE ' . addslashes($this->dbName) . ' TO '.addslashes($this->dbUser));
$query->execute();
}
} catch (DatabaseException $e) {