From 660130cf1ab9fd6cb051712b57966b191064a6a6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 29 Jan 2010 11:23:28 -0800 Subject: Work around a weirdness where empty() doesn't work on input values. --- modules/recaptcha/helpers/recaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/recaptcha') 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; } -- cgit v1.2.3