Skip to content

Commit

Permalink
Pushed out a potential fix for #1 If you choose a year, it removes th…
Browse files Browse the repository at this point in the history
…e month filter unless it's explicitly specified. Basically, it only chooses the current month if no filter is applied to date. Profile filter doesn't change anything, and choosing a month does NOT change the year behavior. I don't think it makes sense to say 'I chose April, so show me every possible April for as long as we've been recording tracks.'
  • Loading branch information
surfrock66 committed Apr 22, 2016
1 parent b8ea73a commit 66bcd4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/get_sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
} elseif ( isset($_GET["month"])) {
$filtermonth = $_GET["month"];
} else {
$filtermonth = date('F');
if ( isset($_POST["selyear"]) || isset($_GET["year"]) ) {
$filtermonth = "%";
} else {
$filtermonth = date('F');
}
}
if ( $filtermonth == "ALL" ) {
$filtermonth = "%";
Expand Down Expand Up @@ -94,7 +98,7 @@
}
else {}
}
echo "debug07";

mysql_free_result($sessionqry);
mysql_close($con);
//echo "<!-- End get_session.php at ".date("H:i:s", microtime(true))." -->\r\n";
Expand Down

0 comments on commit 66bcd4d

Please sign in to comment.