]> source.dussan.org Git - nextcloud-server.git/commitdiff
default table prefix to oc_ if not set
authorTom Needham <needham.thomas@gmail.com>
Tue, 10 Jan 2012 14:41:08 +0000 (14:41 +0000)
committerTom Needham <needham.thomas@gmail.com>
Tue, 10 Jan 2012 14:41:08 +0000 (14:41 +0000)
lib/setup.php

index 9a40c36f62c2d1ccaceef85485fa8fbf5b5df9cf..ce7ee24e13478ae2ca13681d6882ebb6a2806803 100644 (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);