Skip to content

Commit

Permalink
Merge pull request #491 from hollie/ia7_fix_array_dereference
Browse files Browse the repository at this point in the history
Fix missing array dereference reported by Mike on the mailing list
  • Loading branch information
hollie committed Mar 21, 2015
2 parents 3653573 + c6537a5 commit adf8ca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/json_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ sub json_get {
}
if (scalar(@log) > 0) {
$json_data{'print_log'} = [];
push($json_data{'print_log'}, @log);
push(@{$json_data{'print_log'}}, @log);
}
}

Expand All @@ -305,7 +305,7 @@ sub json_get {
}
if (scalar(@log) > 0) {
$json_data{'print_speaklog'} = [];
push($json_data{'print_speaklog'}, @log);
push(@{$json_data{'print_speaklog'}}, @log);
}
}

Expand Down Expand Up @@ -559,7 +559,7 @@ sub json_object_detail {
$value = [];
for my $obj_name (&list_objects_by_group($object->get_object_name, 1)) {
$obj_name =~ s/\$|\%|\&|\@//g;
push ($value, $obj_name);
push (@{$value}, $obj_name);
}
}
}
Expand Down

0 comments on commit adf8ca4

Please sign in to comment.