Skip to content
Snippets Groups Projects
Commit ad20d17e authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

fix a warning if no options present

parent 9b5f01c7
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,8 @@ sub new {
host => $self->{configuration}->{database}->{host},
username => $self->{configuration}->{database}->{username},
password => $self->{configuration}->{database}->{password},
options => [ split(/, */, $self->{configuration}->{database}->{options}) ]
options => $self->{configuration}->{database}->{options} ?
[ split(/, */, $self->{configuration}->{database}->{options}) ] : undef,
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment