From: erickson Date: Thu, 26 Aug 2010 17:03:05 +0000 (+0000) Subject: depth could be 0, don't undef on false; repaired url param addition of depth X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eeb88b5b762b22c1687e1e092b851c67d42eea25;p=evergreen%2Fbjwebb.git depth could be 0, don't undef on false; repaired url param addition of depth git-svn-id: svn://svn.open-ils.org/ILS/trunk@17353 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/Redirect.pm b/Open-ILS/src/perlmods/OpenILS/WWW/Redirect.pm index be951de46..b4854773e 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/Redirect.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/Redirect.pm @@ -58,7 +58,7 @@ sub handler { my $skin = $apache_obj->dir_config('OILSRedirectSkin') || 'default'; - my $depth = $apache_obj->dir_config('OILSRedirectDepth') || undef; + my $depth = $apache_obj->dir_config('OILSRedirectDepth'); my $locale = $apache_obj->dir_config('OILSRedirectLocale') || 'en-US'; my $hostname = $cgi->server_name(); @@ -84,7 +84,7 @@ sub handler { if($org) { $url .= "?ol=" . $org->id; - $url .= "d=$depth" if defined $depth; + $url .= "&d=$depth" if defined $depth; } }