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

raeburn raeburn at source.lon-capa.org
Wed Dec 10 20:52:31 EST 2014


raeburn		Thu Dec 11 01:52:31 2014 EDT

  Modified files:              
    /loncom/interface	lonmsgdisplay.pm 
  Log:
  - Coding style: keys()
  
  
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.177 loncom/interface/lonmsgdisplay.pm:1.178
--- loncom/interface/lonmsgdisplay.pm:1.177	Sun Oct 26 13:10:38 2014
+++ loncom/interface/lonmsgdisplay.pm	Thu Dec 11 01:52:30 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging display
 #
-# $Id: lonmsgdisplay.pm,v 1.177 2014/10/26 13:10:38 raeburn Exp $
+# $Id: lonmsgdisplay.pm,v 1.178 2014/12/11 01:52:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2698,7 +2698,7 @@
        '^'.&escape(&escape($env{'form.showcommentbaseurl'})));
     $r->print(&Apache::loncommon::start_page('Saved Comment Listing',undef,
 					     {'onlybody' => 1}));
-    if ((keys %msgs)[0]=~/^error\:/) {
+    if ((keys(%msgs))[0]=~/^error\:/) {
 	$r->print(&mt('No saved comments yet.'));
     } else {
 	my $found=0;




More information about the LON-CAPA-cvs mailing list