diff --git a/Westdc/User/Account.php b/Westdc/User/Account.php index a9eca50..a8143f0 100644 --- a/Westdc/User/Account.php +++ b/Westdc/User/Account.php @@ -18,7 +18,7 @@ use Westdc\User\Member; class Account implements EventManagerAwareInterface { - public $memberTable = "tbl_member"; + public $memberTable = "users"; public $FieldUsername = "username"; public $FieldPasword = "password"; public $FieldLastlogin = "ts_last_login"; @@ -64,12 +64,12 @@ class Account implements EventManagerAwareInterface { if(is_string($id)) - $sql = "SELECT * FROM {$this->conf->table->member} WHERE username='$id'"; + $sql = "SELECT * FROM ".$this->memberTable." WHERE username='$id'"; elseif(is_numeric($id)) { if($id == 0) $id == view::User('id'); - $sql = "SELECT * FROM {$this->conf->table->member} WHERE id=$id"; + $sql = "SELECT * FROM {$this->memberTable} WHERE id=$id"; } $rs = $this->db->query($sql);