diff options
author | jollytoad | 2005-04-13 11:28:50 +0000 |
---|---|---|
committer | jollytoad | 2005-04-13 11:28:50 +0000 |
commit | 0443a6ab82dfe229bf0813e30f5f293015e2cf1c (patch) | |
tree | 826736e497bcf1154ac0cebf11a422dd1059349f | |
parent | 9db6064b09ca794093eff1b1bc6829793b2b9a44 (diff) |
Fixed download link URL when $_REQUEST['search_path'] isn't set
-rw-r--r-- | display.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/display.php b/display.php index 06dd228a..31bb53f9 100644 --- a/display.php +++ b/display.php @@ -9,7 +9,7 @@ * @param $return_desc The return link name * @param $page The current page * - * $Id: display.php,v 1.47.2.1 2005/03/29 09:33:48 jollytoad Exp $ + * $Id: display.php,v 1.47.2.2 2005/04/13 11:28:50 jollytoad Exp $ */ // Prevent timeouts on large result sets @@ -398,9 +398,10 @@ // Report views don't set a schema, so we need to disable create view in that case if (isset($_REQUEST['schema'])) echo " | <a class=\"navlink\" href=\"views.php?action=create&formDefinition=", urlencode($_REQUEST['query']), "&{$misc->href}\">{$lang['strcreateview']}</a>\n"; - echo " | <a class=\"navlink\" href=\"dataexport.php?query=", urlencode($_REQUEST['query']), - "&search_path=", urlencode($_REQUEST['search_path']), - "&{$misc->href}\">{$lang['strdownload']}</a>\n"; + echo " | <a class=\"navlink\" href=\"dataexport.php?query=", urlencode($_REQUEST['query']); + if (isset($_REQUEST['search_path'])) + echo "&search_path=", urlencode($_REQUEST['search_path']); + echo "&{$misc->href}\">{$lang['strdownload']}</a>\n"; } // Insert |