Skip to content

Commit

Permalink
check if URL has params to prevent no params error (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mw authored Apr 25, 2022
1 parent b6eeef6 commit ff1041e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$protocol = $_SERVER['SERVER_PROTOCOL'];
$domain = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$parameters = $_SERVER['QUERY_STRING'];
$parameters = $GET ? $_SERVER['QUERY_STRING'] : "" ;
$protocol=strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https')
=== FALSE ? 'http' : 'https';
$currenturl = $protocol . '://' . $domain. $script . '?' . $parameters;
Expand Down

0 comments on commit ff1041e

Please sign in to comment.