From 3a5bcc7c2ff4bd09590912d528d71486d2c6e207 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 11 Dec 2016 22:56:15 -0700 Subject: [PATCH] Update img.php --- resources/captcha/img.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/captcha/img.php b/resources/captcha/img.php index 10671c5ffd..21e8609a85 100644 --- a/resources/captcha/img.php +++ b/resources/captcha/img.php @@ -29,7 +29,7 @@ error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ); //hide notices and warnings //start the session ini_set("session.cookie_httponly", True); -session_start(); +if (!isset($_SESSION)) { session_start(); } // Captcha verification image ----------------------- // Description this page is used to verify the captcha @@ -121,4 +121,4 @@ header("Content-type: image/png"); // Using imagepng() results in clearer text compared with imagepng($im); imagedestroy($im); -?> \ No newline at end of file +?>