redmine

Fixed error with already started sessions

@@ -34,8 +34,10 @@ use OAuth2\Token; @@ -34,8 +34,10 @@ use OAuth2\Token;
34 class Session implements DataStore 34 class Session implements DataStore
35 { 35 {
36 public function __construct() { 36 public function __construct() {
  37 + if (session_status() == PHP_SESSION_NONE) {
37 session_start(); 38 session_start();
38 } 39 }
  40 + }
39 41
40 /** 42 /**
41 * 43 *