diff --git a/bureau/class/config.php b/bureau/class/config.php index 220da71e..7e571425 100755 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -208,7 +208,7 @@ if (!defined('NOCHECK')) { for ($i = 0; $i < count($classes); $i++) { $name2 = $classes[$i]; if (isset($$name2)) - continue; // for already instancied class like mem, err or authip + continue; // for already instancied class like mem, msg or authip $name1 = "m_" . $name2; $$name2 = new $name1(); } diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index bb92b68b..cec4d0c1 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -297,7 +297,6 @@ class m_mem { $db->query("select * from membres where uid= ? ;", array($cuid)); $db->next_record(); $this->user = $db->Record; - $msg->init_msgs(); /* Fills $local */ $db->query("SELECT * FROM local WHERE uid= ? ;", array($cuid)); diff --git a/bureau/class/m_messages.php b/bureau/class/m_messages.php index 5a353ef8..114977af 100644 --- a/bureau/class/m_messages.php +++ b/bureau/class/m_messages.php @@ -89,6 +89,7 @@ class m_messages { * Reset the stored messages array */ function init_msgs() { + // $me=debug_backtrace(); $this->log("messages", "init_msgs from ".$me[1]["class"].".".$me[1]["function"]); foreach ($this->ARRLEVEL as $v) { $this->arrMessages[$v] = array(); }