diff options
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php index cd82fd5..a97e3ca 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -25,11 +25,9 @@ function remote_filemtime($url, $recurse = 0) { '' ); $uri['port'] = isset($uri['port']) ? $uri['port'] : 80; - $path = ( - (isset($uri['path']) || isset($uri['query'])) ? - (@$uri['path'] . @$uri['query']) : - '/' - ); + $uri['path'] = isset($uri['path']) ? $uri['path'] : '/'; + $uri['query'] = isset($uri['query']) ? ('?' . $uri['query']) : ''; + $path = $uri['path'] . $uri['query']; $auth = ( (isset($uri['user']) || isset($uri['pass'])) ? ('Authentication: Basic ' . base64_encode(@$uri['user'] . ':' . @$uri['pass']) . "\r\n") : |