From 90ae43d289d195ab36f21bf9ffc5a4926e95413f Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 13 Jul 2017 05:16:53 +0000 Subject: [PATCH] Bug 18934: Preventing warns in Admin -> SMS providers This patch initialises the $op variable to prevent the warns To test: 1) Go to admin -> sms providers 2) Notice warns in error log 3) Apply patch and refresh page 4) Notice warns are gone Sponsored-by: Catalyst IT Signed-off-by: Jonathan Druart (cherry picked from commit 88ab0ef5791d2b428399690c505ac42aba4616df) Signed-off-by: Fridolin Somers (cherry picked from commit adbd961d82fa6aebcc3f93f2dec6af1c8127aab9) Signed-off-by: Katrin Fischer --- admin/sms_providers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/sms_providers.pl b/admin/sms_providers.pl index 4592acf8f8..614204ccc0 100755 --- a/admin/sms_providers.pl +++ b/admin/sms_providers.pl @@ -41,7 +41,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $op = $cgi->param('op'); +my $op = $cgi->param('op') || ''; my $id = $cgi->param('id'); my $name = $cgi->param('name'); my $domain = $cgi->param('domain'); -- 2.39.5