remove check for variable which was set one line above - bugfix for oc-324

This commit is contained in:
Georg Ehrke 2012-03-28 16:38:42 +02:00
parent 0d16f177cb
commit e5c009599d
1 changed files with 0 additions and 3 deletions

View File

@ -318,9 +318,6 @@ class OC_DB {
// Make changes and save them to an in-memory file // Make changes and save them to an in-memory file
$file2 = 'static://db_scheme'; $file2 = 'static://db_scheme';
if($file2 == ''){
die('could not create tempfile in get_temp_dir() - aborting');
}
$content = str_replace( '*dbname*', $CONFIG_DBNAME, $content ); $content = str_replace( '*dbname*', $CONFIG_DBNAME, $content );
$content = str_replace( '*dbprefix*', $CONFIG_DBTABLEPREFIX, $content ); $content = str_replace( '*dbprefix*', $CONFIG_DBTABLEPREFIX, $content );
if( $CONFIG_DBTYPE == 'pgsql' ){ //mysql support it too but sqlite doesn't if( $CONFIG_DBTYPE == 'pgsql' ){ //mysql support it too but sqlite doesn't