Changed session key checking

This commit is contained in:
Wojciech Sznapka 2011-11-28 18:47:47 +01:00
parent e92b657796
commit 3ecbec4ae6

View File

@ -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);