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

raeburn raeburn at source.lon-capa.org
Mon May 29 18:43:07 EDT 2017


raeburn		Mon May 29 22:43:07 2017 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - Extra parentheses needed for inline use of ternary operator.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.657 loncom/interface/lonprintout.pm:1.658
--- loncom/interface/lonprintout.pm:1.657	Mon Jan 30 19:45:05 2017
+++ loncom/interface/lonprintout.pm	Mon May 29 22:43:07 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.657 2017/01/30 19:45:05 raeburn Exp $
+# $Id: lonprintout.pm,v 1.658 2017/05/29 22:43:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3452,7 +3452,9 @@
         if ($env{'request.enc'}) {
             $url = &Apache::lonenc::encrypted($url); 
         }
-        $URLback = $url.($url =~ /\?/) ? '&':'?'.'symb='.$helper->{VARS}{'symb'};
+        if ($url ne '') {
+            $URLback = $url.(($url =~ /\?/) ? '&':'?').'symb='.$helper->{VARS}{'symb'};
+        }
     }
     #
     # Final adjustment of the font size:




More information about the LON-CAPA-cvs mailing list