From 4e932d0180bed4f0d36b26b9a8ec90b8811fd603 Mon Sep 17 00:00:00 2001 From: Libern Date: Sat, 24 Dec 2016 15:04:59 +0800 Subject: [PATCH] Update helpers --- src/Someline/Foundation/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();