projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a1b7cc
)
bugfix: fixed quelling of warning if $db_port not specified
author
Galen Charlton
<galen.charlton@liblime.com>
Fri, 23 Nov 2007 20:44:53 +0000
(14:44 -0600)
committer
Joshua Ferraro
<jmf@liblime.com>
Sun, 25 Nov 2007 22:45:36 +0000
(16:45 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Context.pm
patch
|
blob
|
history
diff --git
a/C4/Context.pm
b/C4/Context.pm
index
c40eb70
..
4c7f1aa
100644
(file)
--- a/
C4/Context.pm
+++ b/
C4/Context.pm
@@
-583,7
+583,8
@@
sub _new_dbh
my $db_name = $context->config("database");
my $db_host = $context->config("hostname");
- my $db_port = $context->config("port") or "";
+ 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",