Fix code warning messages in newer Perl installs
This commit is contained in:
parent
58ead7c11f
commit
27ed9214ef
7 changed files with 48 additions and 22 deletions
|
@ -63,7 +63,7 @@ sub Action__html {
|
|||
if (!is_empty($$arg_ref{DEFAULT})) {
|
||||
my @default = split(' ', $$arg_ref{DEFAULT});
|
||||
if (defined($list_columns{$default[0]}) && !defined($default[2])) {
|
||||
my $dir = in_array(uc($default[1]), 'ASC', 'DESC') ? uc($default[1]) : 'ASC';
|
||||
my $dir = defined($default[1]) && in_array(uc($default[1]), 'ASC', 'DESC') ? uc($default[1]) : 'ASC';
|
||||
$default = strval($default[0], ' ', $dir);
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ sub Action__js {
|
|||
if (!is_empty($$arg_ref{DEFAULT})) {
|
||||
my @default = split(' ', $$arg_ref{DEFAULT});
|
||||
if (defined($list_columns{$default[0]}) && !defined($default[2])) {
|
||||
my $dir = in_array(uc($default[1]), 'ASC', 'DESC') ? uc($default[1]) : 'ASC';
|
||||
my $dir = defined($default[1]) && in_array(uc($default[1]), 'ASC', 'DESC') ? uc($default[1]) : 'ASC';
|
||||
$default = strval($default[0], ' ', $dir);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ sub Control__html {
|
|||
|
||||
__arguments($arg_ref);
|
||||
|
||||
my $multicheck_value = !is_report() && !is_empty($$arg_ref{DEFAULT}) ? $$arg_ref{DEFAULT} : strval_join(',', cgiapp_param($$arg_ref{ID}));
|
||||
my $multicheck_value = !is_report() && !is_empty($$arg_ref{DEFAULT}) ? $$arg_ref{DEFAULT} : strval_join(',', cgiapp_multi($$arg_ref{ID}));
|
||||
|
||||
my $form_group = 'form-group';
|
||||
|
||||
|
@ -123,7 +123,7 @@ sub Get {
|
|||
|
||||
$id = $ID_DEFAULT if is_empty($id);
|
||||
|
||||
return strval_join(',', cgiapp_param($id));
|
||||
return strval_join(',', cgiapp_multi($id));
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue