Changed session key checking

This commit is contained in:
Wojciech Sznapka 2011-11-28 18:47:47 +01:00
parent e92b657796
commit 3ecbec4ae6
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ class CaptchaType extends AbstractType
private function generateCaptchaValue()
{
if ($this->session->has($this->key)) {
$value = $this->session->get($this->key);
if (null == $value || 0 == strlen($value)) {
$charset = 'abcdefhjkmnprstuvwxyz23456789';
$chars = str_split($charset);