[index] Initialize variable before using it
This commit is contained in:
parent
38f197fb60
commit
5790ebc6ba
1 changed files with 2 additions and 1 deletions
|
@ -125,13 +125,14 @@ try {
|
|||
define('NOPROXY',true);
|
||||
}
|
||||
|
||||
$params = $_GET;
|
||||
|
||||
// Initialize cache
|
||||
$cache = Cache::create('FileCache');
|
||||
$cache->setPath(CACHE_DIR);
|
||||
$cache->purgeCache(86400); // 24 hours
|
||||
$cache->setParameters($params);
|
||||
|
||||
$params = $_GET;
|
||||
unset($params['action']);
|
||||
unset($params['bridge']);
|
||||
unset($params['format']);
|
||||
|
|
Loading…
Reference in a new issue