JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform only sends .sql file if you check 'db'. added string_array()
[wfpl.git] / metaform.php
index b32c87e..656d4e0 100644 (file)
@@ -357,8 +357,10 @@ function download_tar() {
                ".htaccess" => make_htaccess(),
                "run.php ->" => 'code/wfpl/run.php',
                "$name.html" => make_html(),
-               "$name.sql" => make_sql(),
                "$name.php" => make_php());
+       if($GLOBALS['opt_db'] == 'Yes') {
+               $data["$name.sql"] = make_sql();
+       }
        if($GLOBALS['opt_email'] == 'Yes') {
                $data["$name.email.txt"] = make_email();
        }