Bug 18934: Preventing warns in Admin -> SMS providers
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 13 Jul 2017 05:16:53 +0000 (05:16 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Jul 2017 21:26:22 +0000 (18:26 -0300)
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 <jonathan.druart@bugs.koha-community.org>
admin/sms_providers.pl

index 4592acf..614204c 100755 (executable)
@@ -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');