Bladeren bron

fixed warning

zjh 1 maand geleden
bovenliggende
commit
5e2404712f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/Request/Url/Base.php

+ 1 - 1
src/Request/Url/Base.php

@@ -182,7 +182,7 @@ abstract class Base
     public function getPath($path = '')
     {
         if (empty($path)) {
-            $path = $_SERVER['SCRIPT_NAME'];
+            $path = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : '';
         }
         return substr($path, 0, (strrpos($path, '/')));
     }