diff --git a/lib/setup.php b/lib/setup.php
index 92487c69162373ca1627e7b5725a55ab351e1165..2dcedb9b82067a353f46bb7178728376628392d1 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -82,7 +82,7 @@ class OC_Setup {
 				$dbpass = $options['dbpass'];
 				$dbname = $options['dbname'];
 				$dbhost = $options['dbhost'];
-				$dbtableprefix = OC_Config::gsetValue('dbtableprefix','oc_');
+				$dbtableprefix = OC_Config::getValue('dbtableprefix','oc_');
 				OC_Config::setValue('dbname', $dbname);
 				OC_Config::setValue('dbhost', $dbhost);
 				OC_Config::setValue('dbtableprefix', $dbtableprefix);