From d9813fa1bd42e5350a2f31f18fad7e17487b248d Mon Sep 17 00:00:00 2001 From: VASILEIOS SOTIRAS Date: Fri, 27 Apr 2018 08:41:50 +0100 Subject: [PATCH] Update avoid undefined index notices in line 73 --- block_aspirelists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_aspirelists.php b/block_aspirelists.php index f8e55b1..72b16b2 100644 --- a/block_aspirelists.php +++ b/block_aspirelists.php @@ -70,7 +70,7 @@ function get_content() { $mapping = json_decode(get_config('aspirelists', 'timePeriodMapping'),true); if($mapping != null) { - $urlTimePeriod = strtolower($mapping[$results[1]]); // make sure is lowercase for URL. + if($mapping[$results[1]]) $urlTimePeriod = strtolower($mapping[$results[1]]); // make sure is lowercase for URL. } else {