[fix] error message not appearing in main.php (in case of CSRF failure)

This commit is contained in:
Benjamin Sonntag 2017-10-07 17:49:19 +02:00
parent 3f9d2c2729
commit 8ba0fbf88c
3 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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));

View File

@ -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();
}