summaryrefslogtreecommitdiffstats
path: root/web
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
parente4130fcca6a206e2947765630757482aaf0cdbc0 (diff)
downloadaur-746c2b72b541865431d88af7a99df29c472a297c.tar.gz
aur-746c2b72b541865431d88af7a99df29c472a297c.tar.xz
Fix PHP notice when submitting an empty file.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-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 787f4c5c..954f1ce1 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);
}