Changeset 1431
- Timestamp:
- 12/06/2007 12:17:41 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/modules/auth/models/user.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/models/user.php
r1364 r1431 4 4 5 5 // Relationships 6 protected $has_many = array('posts');7 6 protected $has_and_belongs_to_many = array('roles'); 8 7 … … 97 96 protected function where_key($id = NULL) 98 97 { 99 if (is_string($id) AND $id != '')98 if (is_string($id) AND ! is_numeric($id)) 100 99 { 101 100 return valid::email($id) ? 'email' : 'username';
