Continue implementing user management

This commit is contained in:
Eike Foken
2011-08-10 20:21:02 +02:00
parent c4dfe084b6
commit c79f3eb47a
5 changed files with 234 additions and 8 deletions

View File

@@ -350,9 +350,8 @@ class User extends CI_Model {
* @return array
*/
public function getUserByID($id = false) {
// if no ID was passed use the current users ID
if (empty($id)) {
$id = $this->session->userdata('user_id');
return false;
}
$this->db->where('users.id', $id);