From 9560287ec47979e124803842ffd46289b35490ba Mon Sep 17 00:00:00 2001 From: uckelman Date: Thu, 15 Jul 2010 10:35:58 +0000 Subject: 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 --- src/attachment_writer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3