From 746c2b72b541865431d88af7a99df29c472a297c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 30 Mar 2011 16:16:27 +0200 Subject: Fix PHP notice when submitting an empty file. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 787f4c5..954f1ce 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -48,7 +48,7 @@ if ($_COOKIE["AURSID"]): } # Close file handle before extracting stuff - if (is_resource($fh)) { + if (isset($fh) && is_resource($fh)) { fclose($fh); } -- cgit v1.2.3-70-g09d2