diff options
author | uckelman <uckelman@nomic.net> | 2010-07-15 10:35:58 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-07-15 10:35:58 +0000 |
commit | 9560287ec47979e124803842ffd46289b35490ba (patch) | |
tree | 7f44ddca1f16ffe0c62cbaa04d3a482eae34a1e1 /src | |
parent | b5b7d96db05cca4e1adfdf7869a36a3b4888084d (diff) |
isset() is faster than array_key_exists().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6986 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-rw-r--r-- | src/attachment_writer.php | 2 |
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"); } |