Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Jul 20, 2024
1 parent d9ebe62 commit b981bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "beycanpress/cryptopay-integrator",
"version": "0.1.12",
"version": "0.1.13",
"description": "CryptoPay and CryptoPay Lite integration wrapper",
"type": "library",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Session
*/
public static function start(): void
{
if (PHP_SESSION_NONE === session_status()) {
if (PHP_SESSION_NONE === session_status() && !headers_sent()) {
session_start();
}
}
Expand Down

0 comments on commit b981bcc

Please sign in to comment.