From c4d4f8a2a73949f8d4d2b81961cf95a5a4c4bc74 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 5 Jan 2018 23:02:52 -0500 Subject: [PATCH] fix warnings that get into tarballs --- metaform.php | 3 +++ tar.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/metaform.php b/metaform.php index 381cb65..e31a9a4 100644 --- a/metaform.php +++ b/metaform.php @@ -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 --- 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'; -- 1.7.10.4