[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Fri Apr 15 10:14:09 EDT 2016
raeburn Fri Apr 15 14:14:09 2016 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- defined(@array) is deprecated.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.445 loncom/interface/lonmenu.pm:1.446
--- loncom/interface/lonmenu.pm:1.445 Tue Apr 5 02:02:28 2016
+++ loncom/interface/lonmenu.pm Fri Apr 15 14:14:09 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.445 2016/04/05 02:02:28 raeburn Exp $
+# $Id: lonmenu.pm,v 1.446 2016/04/15 14:14:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -560,7 +560,7 @@
# see perldoc create_submenu documentation for further information
sub build_submenu {
my ($target, $submenu, $translate, $first_level) = @_;
- if (!defined(@{$submenu})) {
+ unless (@{$submenu}) {
return '';
}
More information about the LON-CAPA-cvs
mailing list