function checkPassword($id_user, $password) { $query = $this->db->get_where($this->table, array('id' => $id_user, 'password' => md5($password))); if ($query === FALSE) { Helper_Log::write($this->messageError(__FUNCTION__, FALSE), Helper_Log::LOG_DB); throw new Exception("Problema ejecución en Base de Datos, ver log de errores. Consulte con Sistemas"); } $row = $query->row_array(); $eUser = new eUser(); $eUser->parseRow($row); return $eUser->isEmpty() ? FALSE : TRUE; }