[index] Initialize variable before using it

This commit is contained in:
logmanoriginal 2016-10-20 22:12:54 +02:00
parent 38f197fb60
commit 5790ebc6ba

View file

@ -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']);