diff --git a/bureau/class/db_mysql.php b/bureau/class/db_mysql.php index 19922326..d165ec8c 100644 --- a/bureau/class/db_mysql.php +++ b/bureau/class/db_mysql.php @@ -39,6 +39,7 @@ class DB_Sql { /* private: link and query handles */ var $Link_ID = 0; var $Query_ID = 0; + var $Query_String = ""; @@ -144,6 +145,7 @@ class DB_Sql { # New query, discard previous result. if ($this->Query_ID) { $this->free(); + $this->Query_String = $Query_String; } if ($this->Debug) diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index 67ff631d..b8b9a759 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -34,13 +34,13 @@ * @copyright AlternC-Team 2002-2005 http://alternc.org/ */ -class DBU_mysql extends DB_Sql { +class DB_users extends DB_Sql { var $Host,$HumanHostname,$User,$Password; /** * Creator */ - function DBU_mysql() { + function DB_users() { # Use the dbusers file if exist, else use default alternc configuration if ( is_readable("/etc/alternc/dbusers.cnf") ) { @@ -104,7 +104,7 @@ class m_mysql { * m_mysql([$mid]) Constructeur de la classe m_mysql, initialise le membre concerne */ function m_mysql() { - $this->dbus = new DBU_mysql(); + $this->dbus = new DB_users(); }