From 2541ffc02c039113d1c25b49eabde8269064dd0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Tue, 16 Jun 2009 05:23:59 +0000 Subject: [PATCH] Fix thrown warning about undefined index git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1519 44740490-163a-0410-bde0-09ae8108e29a --- modules/statistics/templates/statistics-tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/statistics/templates/statistics-tpl.php b/modules/statistics/templates/statistics-tpl.php index 47b6114ed..7b8e08cb7 100644 --- a/modules/statistics/templates/statistics-tpl.php +++ b/modules/statistics/templates/statistics-tpl.php @@ -131,7 +131,7 @@ foreach ($this->data['availdelimiters'] AS $key => $delim) { if ($key == '_') { echo '<option value="_">Total</option>'; - } elseif ($delim == $_REQUEST['d']) { + } elseif (isset($_REQUEST['d']) && $delim == $_REQUEST['d']) { echo '<option selected="selected" value="' . htmlentities($delim) . '">' . htmlspecialchars($delimName) . '</option>'; } else { echo '<option value="' . htmlentities($delim) . '">' . htmlspecialchars($delimName) . '</option>'; -- GitLab