Skip to content

Commit

Permalink
Fix warning RT#73776
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Nov 11, 2013
1 parent 5801855 commit 3efa72a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Revision history for Perl extension CGI::Application::Plugin::DBH

{{ $NEXT }}

- Fix warning RT#73776 (Arthur Axel 'fREW' Schmidt)

4.02 2013-11-11 13:24:41 America/Chicago

- Fix missing dep on DBD::Mock (Arthur Axel 'fREW' Schmidt)
Expand Down
2 changes: 1 addition & 1 deletion lib/CGI/Application/Plugin/DBH.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub dbh {
# create DBH object
if(my $config = $self->{__DBH_CONFIG}{$name} ) {
# Use a callback
if (ref $config eq 'CODE') {
if (ref $config && ref $config eq 'CODE') {
$self->{__DBH}{$name} = $config->();
}
# use the parameters the user supplied
Expand Down

0 comments on commit 3efa72a

Please sign in to comment.