[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

raeburn raeburn at source.lon-capa.org
Mon Feb 4 12:23:44 EST 2013


raeburn		Mon Feb  4 17:23:44 2013 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  - defined(%hash) is deprecated, and results in errors on start-up for 
    Apache 2.4/mod_perl 2.07/perl 5.16 
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.172 loncom/xml/lonplot.pm:1.173
--- loncom/xml/lonplot.pm:1.172	Thu Jan 31 17:10:38 2013
+++ loncom/xml/lonplot.pm	Mon Feb  4 17:23:44 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.172 2013/01/31 17:10:38 raeburn Exp $
+# $Id: lonplot.pm,v 1.173 2013/02/04 17:23:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1714,7 +1714,7 @@
     my $result   = '';
 
 
-    if (defined %$spec) {
+    if ((ref($spec) eq 'HASH') && (keys(%{$spec}) > 0)) {
 
 	
 




More information about the LON-CAPA-cvs mailing list