From fd4b63810d1276e4cc34dd18d5cf01eb0db63c98 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Tue, 10 Jan 2012 14:41:08 +0000 Subject: default table prefix to oc_ if not set --- lib/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/setup.php') 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); -- cgit v1.2.3