Commit 65039e83d4d19a30b61d3a432a462d982857b681

Authored by Geoffrey PREUD'HOMME
1 parent e6faaa33

[Orga] session_start() uniquement si pas démarrée

Certains cas de figure pouvaient arriver où une erreur se produisait.
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
orga.php
... ... @@ -6,7 +6,9 @@ $time = time();
6 6  
7 7 # e_ : est
8 8  
9   -session_start();
  9 +if (session_status() == PHP_SESSION_NONE) {
  10 + session_start();
  11 +}
10 12  
11 13 $e_connecte = isset($_SESSION["connected"]) && $_SESSION["connected"];
12 14 $e_admin = isset($_SESSION["admin"]) && $_SESSION["admin"];
... ...