Permalink
Browse files

Simplified user find

  • Loading branch information...
1 parent 31acd5c commit 1fbf53225c62dda74ddada1c0ca63bdfeed40e86 @predominant predominant committed Sep 12, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/controllers/users_controller.php
View
3 app/controllers/users_controller.php
@@ -62,8 +62,7 @@ public function edit($id = null) {
}
}
- $user = $this->User->find('first', array('conditions' => array('User.id' => (int)$id)));
-
+ $user = $this->User->read(null, $id);
$tabs = array(
array(
'name' => 'general',

0 comments on commit 1fbf532

Please sign in to comment.