--- loncom/xml/lonxml.pm 2011/12/09 21:21:43 1.527 +++ loncom/xml/lonxml.pm 2011/12/28 13:15:00 1.528 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.527 2011/12/09 21:21:43 www Exp $ +# $Id: lonxml.pm,v 1.528 2011/12/28 13:15:00 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -210,8 +210,12 @@ sub xmlend { my $discussion; &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, ['LONCAPA_INTERNAL_no_discussion']); - if (! exists($env{'form.LONCAPA_INTERNAL_no_discussion'}) || - $env{'form.LONCAPA_INTERNAL_no_discussion'} ne 'true') { + if ( + ( (!exists($env{'form.LONCAPA_INTERNAL_no_discussion'})) + || ($env{'form.LONCAPA_INTERNAL_no_discussion'} ne 'true') + ) + && ($env{'form.inhibitmenu'} ne 'yes') + ) { $discussion=&Apache::lonfeedback::list_discussion($mode,$status); } if ($target eq 'tex') {