JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix warnings that get into tarballs
[wfpl.git] / tar.php
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';