From 1552407c4519e02e9cbfd1f2e0f7837e47fd9a38 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 23 Nov 2007 14:44:51 -0600 Subject: [PATCH] quell warning about missing config parameter (DB) 'port' This context parameter is not necessarily present for MySQL storage method. Signed-off-by: Joshua Ferraro --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 3c9d9a4845..c40eb701ca 100644 --- a/C4/Context.pm +++ b/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", -- 2.39.2