JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix warnings that get into tarballs
authorJason Woofenden <jason@jasonwoof.com>
Sat, 6 Jan 2018 04:02:52 +0000 (23:02 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 3 Jul 2018 00:31:36 +0000 (20:31 -0400)
metaform.php
tar.php

index 381cb65..e31a9a4 100644 (file)
@@ -108,6 +108,8 @@ function metaform_main() {
                if($GLOBALS['opt_public_form'] || $GLOBALS['opt_public_display']) {
                        $GLOBALS['opt_public_something'] = 1;
                        $GLOBALS['file_name'] = $GLOBALS['file_name'] . _admin;
+               } else {
+                       $GLOBALS['opt_public_something'] = 0;
                }
 
                tem_init();
@@ -466,6 +468,7 @@ function make_php() {
        $always_field = find_always_field($fields);
        $image_included_yet = false;
        $name_to_caption = array();
+       $has_uploads = false;
        foreach($fields as $field) {
                $name_to_caption[] = array('name' => $field['name'], 'caption' => $field['caption']);
                if($field['input'] != 'submit') {
diff --git a/tar.php b/tar.php
index 50192e5..d5f7021 100644 (file)
--- a/tar.php
+++ b/tar.php
@@ -30,7 +30,7 @@ function write_file($name, $data) {
 #    $extra: (optional) a function to be called right before tar-ing.
 function make_tar($dirname, $files, $pre_archive_func = false, $tmpdir = false) {
        if(!$tmpdir) {
-               if($GLOBALS['wfpl_tmpdir']) {
+               if(isset($GLOBALS['wfpl_tmpdir']) && $GLOBALS['wfpl_tmpdir']) {
                        $tmpdir = $GLOBALS['wfpl_tmpdir'];
                } else {
                        $tmpdir = 'tmp';