diff --git a/bureau/admin/login.php b/bureau/admin/login.php index 9cfe04af..833f6c66 100644 --- a/bureau/admin/login.php +++ b/bureau/admin/login.php @@ -31,16 +31,6 @@ require_once("../class/config.php"); -if (!$mem->checkid()) -{ - $error = $err->errstr(); - include("index.php"); - exit(); -} - -$mem->resetlast(); - header("Location: main.php"); -exit; ?> diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index b266a362..3146975d 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -164,6 +164,7 @@ class m_mem { $db->next_record(); $this->local = $db->Record; } + $this->resetlast(); return true; }