We have moved to Github. Please open tickets there.

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2474 closed Defect (fixed)

Possible bug engine/database.php

Reported by: javigs Owned by:
Priority: normal Milestone: Elgg 1.7.4
Component: Core Version: 1.7
Severity: minor Keywords:
Cc: brettp Difficulty:

Description

Function establish_db_link:

line: if (!$dblink[$dblinkname] = mysql_connect($CONFIG->dbhost, $CONFIG->dbuser, $CONFIG->dbpass, true))
should be:
if (!$dblink[$dblinkname] = mysql_connect($dbhost, $dbuser, $dbpass, true))

and
line: if (!mysql_select_db($CONFIG->dbname, $dblink[$dblinkname]))
should be:
if (!mysql_select_db($dbname, $dblink[$dblinkname]))

With these changes should work read & write with different connection parameters.

Change History (2)

comment:1 Changed 3 years ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for this bug report. It has been fixed in revision [svn:6976].

comment:2 Changed 3 years ago by cash

(In [svn:7103]) Refs #2474 - merged [svn:6976] from 1.7 branch into trunk

Note: See TracTickets for help on using tickets.