/** * Check if a user exists * * @param int $userid * @param string $username * @return int * * Notes: Returns 'no' if a user doesn't exist, else field under which found */ public function userExists($id = 0, $username = '', $email = '') { require_once LIBS . 'UserInfo.php'; $userInfo = new UserInfo(); return $userInfo->userExists($this->db, $id, $username, $email); }