Skip to content
Snippets Groups Projects
Commit 33273b68 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Compare database server ports using 'eq' instead of with '=='. Avoids

warnings when the port is an empty string.
parent 7752bfff
No related branches found
No related tags found
No related merge requests found
......@@ -182,9 +182,10 @@ sub is_stored {
#
# Databases are the same if they share the same port, host and username
#
if($db->port == $cur_db->port &&
$db->host eq $cur_db->host &&
$db->dbname eq $cur_db->dbname) {
if ( $db->port() eq $cur_db->port()
&& $db->host() eq $cur_db->host()
&& $db->dbname() eq $cur_db->dbname() )
{
return 1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment