Browse Source

quell warning about missing config parameter (DB) 'port'

This context parameter is not necessarily present for
MySQL storage method.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Galen Charlton 17 years ago
committed by Joshua Ferraro
parent
commit
1552407c45
  1. 2
      C4/Context.pm

2
C4/Context.pm

@ -583,7 +583,7 @@ sub _new_dbh
my $db_name = $context->config("database");
my $db_host = $context->config("hostname");
my $db_port = $context->config("port");
my $db_port = $context->config("port") or "";
my $db_user = $context->config("user");
my $db_passwd = $context->config("pass");
my $dbh= DBI->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",

Loading…
Cancel
Save