Bläddra i källkod

Update img.php

FusionPBX 8 år sedan
förälder
incheckning
a85e020558
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      resources/captcha/img.php

+ 2 - 2
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);
-?>
+?>