diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-29 11:23:28 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-29 11:23:28 -0800 |
commit | 660130cf1ab9fd6cb051712b57966b191064a6a6 (patch) | |
tree | db6a91c9a48bcbd5ceab704bdcd23d0d628adfa2 /modules/recaptcha | |
parent | 3f5ad7d77a4b877220cd410afbb286dce5b15b75 (diff) |
Work around a weirdness where empty() doesn't work on input values.
Diffstat (limited to 'modules/recaptcha')
-rw-r--r-- | modules/recaptcha/helpers/recaptcha.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/recaptcha/helpers/recaptcha.php b/modules/recaptcha/helpers/recaptcha.php index 2b3b869c..5df22cbc 100644 --- a/modules/recaptcha/helpers/recaptcha.php +++ b/modules/recaptcha/helpers/recaptcha.php @@ -60,7 +60,7 @@ class recaptcha_Core { * @return boolean */ static function verify_key($private_key_input) { - if (empty($private_key_input->value)) { + if (!$private_key_input->value) { $private_key_input->add_error("required", 1); return; } |