We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03378b0 commit 2af0509Copy full SHA for 2af0509
src/Logger.php
@@ -43,10 +43,15 @@ public static function __callStatic($name, $arguments)
43
$arguments = [$arguments];
44
}
45
46
- if (isset($arguments[1])) {
+ // fix the wrong usage of xlog when second parameter is not an array
47
+ if (!isset($arguments[1])) {
48
$arguments[1] = [];
49
50
51
+ if(!is_array($arguments[1])){
52
+ $arguments[1] = [$arguments[1]];
53
+ }
54
+
55
if (session_status() == PHP_SESSION_NONE) {
56
$arguments[1]['sid'] = session_id();
57
} else {
0 commit comments