diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-01-10 14:41:08 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-01-10 14:41:08 +0000 |
commit | fd4b63810d1276e4cc34dd18d5cf01eb0db63c98 (patch) | |
tree | 59c325e80ccfc014e14dcd28df4cbe24d75774fd /lib/setup.php | |
parent | 5817bd10bad89cf6dab07adeffac3239dc54d459 (diff) | |
download | nextcloud-server-fd4b63810d1276e4cc34dd18d5cf01eb0db63c98.tar.gz nextcloud-server-fd4b63810d1276e4cc34dd18d5cf01eb0db63c98.zip |
default table prefix to oc_ if not set
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index 9a40c36f62c..ce7ee24e134 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -84,7 +84,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); |