From 4ee10d858f16bcd7e5e893fb568b3eaa661a2be9 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 13 Jul 2016 09:26:22 +0200 Subject: [PATCH] Add check for empty values for season and episode in api page --- Changelog | 2 ++ build/nntmux.xml | 2 +- www/pages/api.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 01fa149b2..091f194e6 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2016-07-13 DariusIII + * Chg: Add check for empty values for season and episode in api page 2016-07-12 DariusIII * Fix: Wrong usage of result.guid in Gentele theme viewmoviefull page * Fix: Prevent undefined index notices in XML_Response diff --git a/build/nntmux.xml b/build/nntmux.xml index 774e7e36a..3af2aebc4 100755 --- a/build/nntmux.xml +++ b/build/nntmux.xml @@ -2,7 +2,7 @@ - 0.0.0 + v0.4.2 9 diff --git a/www/pages/api.php b/www/pages/api.php index eb8d5c5d3..f865f09a1 100644 --- a/www/pages/api.php +++ b/www/pages/api.php @@ -156,7 +156,7 @@ switch ($function) { ]; // Process season only queries or Season and Episode/Airdate queries - if (isset($_GET['season']) || (isset($_GET['season']) && isset($_GET['ep']))) { + if (!empty($_GET['season']) || (!empty($_GET['season']) && !empty($_GET['ep']))) { if (preg_match('#^(19|20)\d{2}$#', $_GET['season'], $year) && stripos($_GET['ep'], '/') !== false) { $airdate = str_replace('/', '-', $year[0] . '-' . $_GET['ep']); } else {