Avoiding check that as_url is globally set (fixes #46)

This commit is contained in:
Gregwar 2013-01-23 19:58:45 +01:00
parent 34de9cd753
commit 95342e80a9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class CaptchaController extends Controller
$whitelistKey = $options['whitelist_key']; $whitelistKey = $options['whitelist_key'];
$isOk = false; $isOk = false;
if ($options['as_url'] && $session->has($whitelistKey)) { if ($session->has($whitelistKey)) {
$keys = $session->get($whitelistKey); $keys = $session->get($whitelistKey);
if (is_array($keys) && in_array($key, $keys)) { if (is_array($keys) && in_array($key, $keys)) {
$isOk = true; $isOk = true;