diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2003-10-16 19:02:52 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2003-10-16 19:02:52 +0000 |
commit | 05772677bb7942b371cd7e47c12880609d1284e8 (patch) | |
tree | b82b5fc7af8653ceb92f5cfab537d434277d13c0 /includes | |
parent | a9098cd72fa0513d708dfbbeb4b341799c1542fd (diff) | |
download | phpicalendar-05772677bb7942b371cd7e47c12880609d1284e8.tar.gz phpicalendar-05772677bb7942b371cd7e47c12880609d1284e8.tar.bz2 phpicalendar-05772677bb7942b371cd7e47c12880609d1284e8.zip |
Fixed warning for reference to $query when not set.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/sidebar.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/sidebar.php b/includes/sidebar.php index bdaa08c..921e937 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -51,7 +51,9 @@ $search_box = '<form style="margin-bottom:0;" action="search.php" method="GET">< echo '<div style="padding: 5px;">'; echo '<form style="margin-bottom:0;" action="day.php" method="GET">'; - echo "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">"; + echo "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'"; + if (isset($query)) echo $query; + echo "');\">"; include('./functions/list_icals.php'); include('./functions/list_years.php'); include('./functions/list_months.php'); |