diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-25 16:36:58 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-25 16:36:58 +0100 |
commit | ea8f71a19c59e7138d4a504bacc0beb410fc77e8 (patch) | |
tree | 5c4da1ddafb6d81feb90d3a70e927e59dc0a5e0d /lib/db.php | |
parent | 814bc2fd2bef739938716ae840a4db0de502422a (diff) | |
parent | 8b93a9a237603185501d0e24e9c08705168fc553 (diff) | |
download | nextcloud-server-ea8f71a19c59e7138d4a504bacc0beb410fc77e8.tar.gz nextcloud-server-ea8f71a19c59e7138d4a504bacc0beb410fc77e8.zip |
Merge branch 'master' into encryption
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index 9d3c20e0145..4c17cd0dbd1 100644 --- a/lib/db.php +++ b/lib/db.php @@ -318,6 +318,9 @@ class OC_DB { // Make changes and save them to a temporary file $file2 = tempnam( get_temp_dir(), 'oc_db_scheme_' ); + if($file2 == ''){ + die('could not create tempfile in get_temp_dir() - aborting'); + } $content = str_replace( '*dbname*', $CONFIG_DBNAME, $content ); $content = str_replace( '*dbprefix*', $CONFIG_DBTABLEPREFIX, $content ); if( $CONFIG_DBTYPE == 'pgsql' ){ //mysql support it too but sqlite doesn't |