diff --git a/src/Someline/Foundation/helpers.php b/src/Someline/Foundation/helpers.php index 91bd65d..6d7fe40 100644 --- a/src/Someline/Foundation/helpers.php +++ b/src/Someline/Foundation/helpers.php @@ -23,7 +23,7 @@ function current_auth_user() function current_full_url($withQueryString = true) { $url = \Request::url(); - $query = $withQueryString ? $_SERVER['QUERY_STRING'] : null; + $query = $withQueryString ? (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null) : null; if ($query) { $path = \Request::path();