[fix] error message not appearing in main.php (in case of CSRF failure)
This commit is contained in:
parent
3f9d2c2729
commit
8ba0fbf88c
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue