From 3ecbec4ae6e04919869b155bd99aada49736b374 Mon Sep 17 00:00:00 2001 From: Wojciech Sznapka Date: Mon, 28 Nov 2011 18:47:47 +0100 Subject: [PATCH] Changed session key checking --- Type/CaptchaType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Type/CaptchaType.php b/Type/CaptchaType.php index 0e720fd..bf24419 100755 --- a/Type/CaptchaType.php +++ b/Type/CaptchaType.php @@ -149,8 +149,8 @@ class CaptchaType extends AbstractType private function generateCaptchaValue() { - $value = $this->session->get($this->key); - if (null == $value || 0 == strlen($value)) { + if ($this->session->has($this->key)) { + $value = $this->session->get($this->key); $charset = 'abcdefhjkmnprstuvwxyz23456789'; $chars = str_split($charset);