diff --git a/src/application/controllers/captcha.php b/src/application/controllers/captcha.php index 01941b0d..7c64de76 100644 --- a/src/application/controllers/captcha.php +++ b/src/application/controllers/captcha.php @@ -32,8 +32,9 @@ class Captcha extends CI_Controller { public function index() { header('Content-type: image/jpeg'); $builder = new Gregwar\Captcha\CaptchaBuilder; - $builder->build()->output(); + $builder->build(); $this->session->set_userdata('captcha_phrase', $builder->getPhrase()); + $builder->output(); } }