Letters.pm: Minor change. Unsure if this is "the right" move, but pretty sure the...
[koha_fer] / C4 / Context.pm
index 3c9d9a4..5ff2474 100644 (file)
@@ -61,7 +61,7 @@ use C4::Boolean;
 
 use vars qw($VERSION $AUTOLOAD $context @context_stack);
 
-$VERSION = '3.00.00.028';
+$VERSION = '3.00.00.032';
 
 =head1 NAME
 
@@ -584,6 +584,7 @@ sub _new_dbh
     my $db_name   = $context->config("database");
     my $db_host   = $context->config("hostname");
     my $db_port   = $context->config("port");
+    $db_port = "" unless defined $db_port;
     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",