summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 18:15:03 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 18:15:03 +0100
commite15d370cb009809ea4f0be606303c558ae35789d (patch)
tree8d68bbcbfe453c44fc76322bbecb22031a69babd /index.php
parent1b7fbc4614b577e14052fea50487ee5d0a301e93 (diff)
downloadplanet-e15d370cb009809ea4f0be606303c558ae35789d.tar
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.gz
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.bz2
planet-e15d370cb009809ea4f0be606303c558ae35789d.tar.xz
planet-e15d370cb009809ea4f0be606303c558ae35789d.zip
Fix warnings
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index d98c709..75c1bc6 100755
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@ if (0 < $Planet->loadOpml($PlanetConfig->getOpmlFile())) {
Cache::$enabled = false;
$cache_key = (count($items)) ? $items[0]->get_id() : '';
$last_modified = (count($items)) ? $items[0]->get_date() : '';
-$cache_duration = $PlanetConfig->getOutputTimeout()*60;
+$cache_duration = $PlanetConfig->getOutputTimeout() * 60;
Cache::setStore($PlanetConfig->getCacheDir());
@@ -36,7 +36,7 @@ if (isset($_GET['type']) && $_GET['type'] == 'atom10') {
//Go display
if (!isset($_GET['type']) ||
!is_file(__DIR__.'/custom/views/'.$_GET['type'].'/index.tpl.php') ||
- strpos($_GET['type'], DIRECTORY_SEPARATOR) || strpos($GET['type'], '..')) {
+ strpos($_GET['type'], DIRECTORY_SEPARATOR) || strpos($_GET['type'], '..')) {
$_GET['type'] = 'default';
}