We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bc9b8 commit 6544d73Copy full SHA for 6544d73
3 files changed
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+## 1.0.2 - 2018-09-06
4
+### Fixed
5
+- Check if $ _SESSION is set, to avoid "Undefined variable: _SESSION in.."
6
+
7
## 1.0.1 - 2018-09-04
8
### Fixed
9
- Array to string conversion in mail template
composer.json
@@ -2,7 +2,7 @@
"name": "bitboxde/error-notifier",
"description": "Sending an email if an error occurred.",
"type": "craft-plugin",
- "version": "1.0.1",
+ "version": "1.0.2",
"keywords": [
"craft",
"cms",
src/services/HandleException.php
@@ -106,6 +106,10 @@ protected function getUserVars()
106
107
protected function getSessionVars()
108
{
109
+ if (session_status() === PHP_SESSION_NONE) {
110
+ session_start();
111
+ }
112
113
return print_r($_SESSION, true);
114
}
115
0 commit comments