1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 22:25:31 +02:00

Notice removal and file cleanup

This commit is contained in:
Cameron
2013-03-21 02:52:34 -07:00
parent dc71a8500e
commit b843bcc0c7
9 changed files with 36 additions and 1828 deletions

View File

@@ -1985,7 +1985,7 @@ class eRouter
# Modify params if required
if($params)
{
if($config['mapVars'])
if(varset($config['mapVars']))
{
foreach ($config['mapVars'] as $srcKey => $dstKey)
{
@@ -1998,7 +1998,7 @@ class eRouter
}
// false means - no vars are allowed, nothing to preserve here
if($config['allowVars'] === false) $params = array();
if(varset($config['allowVars']) === false) $params = array();
// default empty array value - try to guess what's allowed - mapVars is the best possible candidate
elseif(empty($config['allowVars']) && !empty($config['mapVars'])) $params = array_unique(array_values($config['mapVars']));
// disallow everything but valid URL parameters