summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/attachment_writer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attachment_writer.php b/src/attachment_writer.php
index 970261a..dfc1233 100644
--- a/src/attachment_writer.php
+++ b/src/attachment_writer.php
@@ -9,7 +9,7 @@ if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) {
}
# Check the password
-if (!array_key_exists('password', $_POST)) {
+if (!isset($_POST['password'])) {
die("No password given\n");
}