]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #860 from wallabag/compatibility_file 863/head
authorThomas Citharel <tcit@tcit.fr>
Wed, 8 Oct 2014 19:36:51 +0000 (21:36 +0200)
committerThomas Citharel <tcit@tcit.fr>
Wed, 8 Oct 2014 19:36:51 +0000 (21:36 +0200)
Move compatibility file (fixes #858)

install/index.php

index fe5a5785fe5643d03d819bcb088ae080810534ee..89dfc0177f58a3a5a6595db9823f4dd9314480a5 100755 (executable)
@@ -155,8 +155,10 @@ else if (isset($_POST['install'])) {
                     }
                 }
 
-                // create database structure
-                $query = $handle->exec($sql_structure);
+                if ($_POST['db_engine'] != "sqlite") {
+                    // create database structure
+                    $query = $handle->exec($sql_structure);
+                }
 
                 // Create user
                 $handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);