[LON-CAPA-cvs] cvs: loncom /interface lonmsg.pm

www lon-capa-cvs@mail.lon-capa.org
Tue, 07 Jun 2005 13:42:53 -0000


www		Tue Jun  7 09:42:53 2005 EDT

  Modified files:              
    /loncom/interface	lonmsg.pm 
  Log:
  Only show action links if info is available
  
  
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.148 loncom/interface/lonmsg.pm:1.149
--- loncom/interface/lonmsg.pm:1.148	Mon Jun  6 17:06:14 2005
+++ loncom/interface/lonmsg.pm	Tue Jun  7 09:42:51 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging
 #
-# $Id: lonmsg.pm,v 1.148 2005/06/06 21:06:14 www Exp $
+# $Id: lonmsg.pm,v 1.149 2005/06/07 13:42:51 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1799,11 +1799,11 @@
 	if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {
 		$r->print('<td><b>'.&Apache::loncommon::track_student_link(&mt('View recent activity'),$content{'sendername'},$content{'senderdomain'},'check').'</b></td>');
 	    }
-	if (&Apache::lonnet::allowed('opa',$env{'request.course.id'})) {
+	if ((&Apache::lonnet::allowed('opa',$env{'request.course.id'}) && $symb) {
 	    my $symb=&Apache::lonnet::symbread($content{'baseurl'});
 	    $r->print('<td><b>'.&Apache::loncommon::pprmlink(&mt('Set/Change parameters'),$content{'sendername'},$content{'senderdomain'},$symb,'check').'</b></td>');
 	}
-	if (&Apache::lonnet::allowed('mgr',$env{'request.course.id'})) {
+	if ((&Apache::lonnet::allowed('mgr',$env{'request.course.id'}) && $symb) {
 	    my $symb=&Apache::lonnet::symbread($content{'baseurl'});
 	    $r->print('<td><b>'.&Apache::loncommon::pgrdlink(&mt('Set/Change grades'),$content{'sendername'},$content{'senderdomain'},$symb,'check').'</b></td>');
 	}