Explorar el Código

Merge branch 'category_03_11_liu'

rkljw hace 1 mes
padre
commit
ce3fe8ed93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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