From 5790ebc6ba98cd563758dddb563d332f92f4ae95 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 20 Oct 2016 22:12:54 +0200 Subject: [PATCH] [index] Initialize variable before using it --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 966f30b9..112589b0 100644 --- a/index.php +++ b/index.php @@ -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']);