diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-30 16:16:27 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-03-30 16:16:27 +0200 |
commit | 746c2b72b541865431d88af7a99df29c472a297c (patch) | |
tree | 34f1629d856702ff631746477a51dc769e4ede82 | |
parent | e4130fcca6a206e2947765630757482aaf0cdbc0 (diff) | |
download | aur-746c2b72b541865431d88af7a99df29c472a297c.tar.gz aur-746c2b72b541865431d88af7a99df29c472a297c.tar.xz |
Fix PHP notice when submitting an empty file.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r-- | web/html/pkgsubmit.php | 2 |
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); } |