소스 검색

foomiddleware

rkljw 2 달 전
부모
커밋
9e099e93a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Middleware/Auth/FooMiddleware.php

+ 1 - 1
app/Middleware/Auth/FooMiddleware.php

@@ -55,7 +55,7 @@ class FooMiddleware implements MiddlewareInterface
                        ]
                    );
                 }
-                if($header['userurl'][0]){
+                if($header['userurl'] && $header['userurl'][0]){
                     $origin = $header['userurl'][0];
                     $data = [
                         'website_url'=>$origin