diff --git a/functions.inc.php b/functions.inc.php index 3ee0e9b..48c7178 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -81,7 +81,11 @@ function createURL($page = '', $ending = '') { if (!$cleanurls && $page != '') { $page .= '.php'; } - return ROOT . $page .'/'. $ending; + if(strlen($ending)>0) { + return ROOT . $page .'/'. $ending; + } else { + return ROOT . $page; + } } /* Shorten a string like a URL for example by cutting the middle of it */