Skip to content

Commit 344d964

Browse files
committed
fix(translatorApi): only start session if not already started
1 parent 8b9d3c0 commit 344d964

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TranslatorAPI.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace MultilangAny;
44

5-
session_start();
5+
if (session_status() === PHP_SESSION_NONE) {
6+
session_start();
7+
}
68

79
use MultilangAny\Settings AS TranslatorSettings;
810

0 commit comments

Comments
 (0)