From 397864e7371df953b0c5093493f49a5a2cd935c2 Mon Sep 17 00:00:00 2001 From: UnicronNL Date: Tue, 19 Apr 2016 13:48:37 +0200 Subject: defined(@array) is deprecated, omit the defined() --- scripts/vyatta-op-vpnprof.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/vyatta-op-vpnprof.pl') diff --git a/scripts/vyatta-op-vpnprof.pl b/scripts/vyatta-op-vpnprof.pl index 72124fa..4da46c4 100644 --- a/scripts/vyatta-op-vpnprof.pl +++ b/scripts/vyatta-op-vpnprof.pl @@ -52,11 +52,11 @@ if ( defined $show_ipsec_sa_profile_detail ) { Vyatta::vpnprof::OPMode::show_ipsec_sa_profile_detail( $show_ipsec_sa_profile_detail); } -if ( defined @show_ipsec_sa_conn_detail ) { +if ( @show_ipsec_sa_conn_detail ) { Vyatta::vpnprof::OPMode::show_ipsec_sa_conn_detail( @show_ipsec_sa_conn_detail); } -if ( defined @show_ipsec_sa_conn ) { +if ( @show_ipsec_sa_conn ) { Vyatta::vpnprof::OPMode::show_ipsec_sa_conn(@show_ipsec_sa_conn); } if ( defined $show_ipsec_sa_stats ) { @@ -66,7 +66,7 @@ if ( defined $show_ipsec_sa_stats_profile ) { Vyatta::vpnprof::OPMode::show_ipsec_sa_stats_profile( $show_ipsec_sa_stats_profile); } -if ( defined @show_ipsec_sa_stats_conn ) { +if ( @show_ipsec_sa_stats_conn ) { Vyatta::vpnprof::OPMode::show_ipsec_sa_stats_conn( @show_ipsec_sa_stats_conn); } -- cgit v1.2.3