mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 15:47:32 +02:00
[index] Initialize variable before using it
This commit is contained in:
@@ -125,13 +125,14 @@ try {
|
|||||||
define('NOPROXY',true);
|
define('NOPROXY',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$params = $_GET;
|
||||||
|
|
||||||
// Initialize cache
|
// Initialize cache
|
||||||
$cache = Cache::create('FileCache');
|
$cache = Cache::create('FileCache');
|
||||||
$cache->setPath(CACHE_DIR);
|
$cache->setPath(CACHE_DIR);
|
||||||
$cache->purgeCache(86400); // 24 hours
|
$cache->purgeCache(86400); // 24 hours
|
||||||
$cache->setParameters($params);
|
$cache->setParameters($params);
|
||||||
|
|
||||||
$params = $_GET;
|
|
||||||
unset($params['action']);
|
unset($params['action']);
|
||||||
unset($params['bridge']);
|
unset($params['bridge']);
|
||||||
unset($params['format']);
|
unset($params['format']);
|
||||||
|
Reference in New Issue
Block a user