Code Duplication    Length = 4-4 lines in 2 locations

sources/database/Db-mysql.class.php 1 location

@@ 60-63 (lines=4) @@
57
			self::$_db = new self();
58
59
		// Non-standard port
60
		if (!empty($db_options['port']))
61
			$db_port = (int) $db_options['port'];
62
		else
63
			$db_port = 0;
64
65
		// Select the database. Maybe.
66
		if (empty($db_options['dont_select_db']))

sources/database/Db-postgresql.class.php 1 location

@@ 72-75 (lines=4) @@
69
		if (self::$_db === null)
70
			self::$_db = new self();
71
72
		if (!empty($db_options['port']))
73
			$db_port = ' port=' . (int) $db_options['port'];
74
		else
75
			$db_port = '';
76
77
		if (!empty($db_options['persist']))
78
			$connection = @pg_pconnect('host=' . $db_server . $db_port . ' dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'');