summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 16:16:27 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 16:16:27 +0200
commit746c2b72b541865431d88af7a99df29c472a297c (patch)
tree34f1629d856702ff631746477a51dc769e4ede82 /web/html
parente4130fcca6a206e2947765630757482aaf0cdbc0 (diff)
downloadaurweb-746c2b72b541865431d88af7a99df29c472a297c.tar.xz
Fix PHP notice when submitting an empty file.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
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);
}