Fix PHP notice when submitting an empty file.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-03-30 16:16:27 +02:00
parent e4130fcca6
commit 746c2b72b5

View file

@ -48,7 +48,7 @@ if ($_COOKIE["AURSID"]):
} }
# Close file handle before extracting stuff # Close file handle before extracting stuff
if (is_resource($fh)) { if (isset($fh) && is_resource($fh)) {
fclose($fh); fclose($fh);
} }