summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-05-28 20:56:21 +0000
committerBrice Maron <brice@bmaron.net>2012-05-28 20:56:21 +0000
commit2f8412defc6e6adb3dee4ea81f450176a36527b2 (patch)
tree18fa0dafaec51cd57494bf30ab089cb4a01e4bcb /lib
parentcf113409adf82d0834181dbdf4586fd2ad262898 (diff)
downloadnextcloud-server-2f8412defc6e6adb3dee4ea81f450176a36527b2.tar.gz
nextcloud-server-2f8412defc6e6adb3dee4ea81f450176a36527b2.zip
Set table prefix if not set in postgresql install
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 8c2d5231210..8137eb720e5 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -145,7 +145,7 @@ class OC_Setup {
$dbpass = $options['dbpass'];
$dbname = $options['dbname'];
$dbhost = $options['dbhost'];
- $dbtableprefix = $options['dbtableprefix'];
+ $dbtableprefix = isset($options['dbtableprefix']) ? $options['dbtableprefix'] : 'oc_';
OC_CONFIG::setValue('dbname', $dbname);
OC_CONFIG::setValue('dbhost', $dbhost);
OC_CONFIG::setValue('dbtableprefix', $dbtableprefix);