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

View File

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