Changed session key checking
This commit is contained in:
parent
e92b657796
commit
3ecbec4ae6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user