--- loncom/cgi/graph.png 2005/04/07 06:56:21 1.34 +++ loncom/cgi/graph.png 2005/05/25 22:31:51 1.35 @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $Id: graph.png,v 1.34 2005/04/07 06:56:21 albertel Exp $ +# $Id: graph.png,v 1.35 2005/05/25 22:31:51 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -92,8 +92,8 @@ my $id = $ENV{'QUERY_STRING'}; # usage: &get_env($name,$default) sub get_env { my $key = 'cgi.'.$id.'.'.(shift()); - return shift if (! exists($env{$key})); - return $env{$key}; + return shift if (! exists($Apache::lonnet::env{$key})); + return $Apache::lonnet::env{$key}; } if (! &LONCAPA::loncgi::check_cookie_and_load_env()) {