fix undefined array key error
This commit is contained in:
parent
4aca27c940
commit
80ddd8a8bd
|
|
@ -26,7 +26,9 @@ class CheckOctoberSession
|
||||||
|
|
||||||
// For Birzha User's session
|
// For Birzha User's session
|
||||||
try{
|
try{
|
||||||
if(env('APP_ENV') == 'production') {
|
if(env('APP_ENV') == 'production'
|
||||||
|
&& isset(preg_split("/[\s\[\]\",]+/", \Cookie::get('user_auth'))[1])) {
|
||||||
|
|
||||||
$userId = preg_split("/[\s\[\]\",]+/", \Cookie::get('user_auth'))[1];
|
$userId = preg_split("/[\s\[\]\",]+/", \Cookie::get('user_auth'))[1];
|
||||||
|
|
||||||
$user = BirzhaUser::find($userId);
|
$user = BirzhaUser::find($userId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue