default table prefix to oc_ if not set

This commit is contained in:
Tom Needham 2012-01-10 14:41:08 +00:00
parent 5817bd10ba
commit fd4b63810d
1 changed files with 1 additions and 1 deletions

View File

@ -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);