Skip to content

Commit

Permalink
Avoid multiple RunTimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Sep 13, 2014
1 parent 828efb0 commit 3237de6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Network/Session.php
Expand Up @@ -311,9 +311,7 @@ public function start() {
}

if (ini_get('session.use_cookies') && headers_sent($file, $line)) {
throw new \RuntimeException(
sprintf('Cannot start session, headers already sent in "%s" at line %d', $file, $line)
);
return;
}

if (!session_start()) {
Expand Down

0 comments on commit 3237de6

Please sign in to comment.