From 8ba0fbf88c8559968bcdd9da5d3279ee814b0781 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 7 Oct 2017 17:49:19 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0error=20message=20not=20appearing=20?= =?UTF-8?q?in=20main.php=20(in=20case=20of=20CSRF=20failure)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/config.php | 2 +- bureau/class/m_mem.php | 1 - bureau/class/m_messages.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) 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(); }