apps/user_external/lib/base.php
/**
	 * Check if a user exists
	 *
	 * @param string $uid the username
	 *
	 * @return boolean
	 */
Check if a user exists
@param string $uid the username

@return boolean
Check if a user exists @param string $uid the username @return boolean
public function userExists($uid) {
		$result = OC_DB::executeAudited(
			'SELECT COUNT(*) FROM `*PREFIX*users_external`'
			. ' WHERE LOWER(`uid`) = LOWER(?) AND `backend` = ?',
			array($uid, $this->backend)
		);
		return $result->fetchOne() > 0;
	}
public function userExists ( $ uid ) { $ result = OC_DB :: executeAudited ( 'SELECT COUNT(*) FROM `*PREFIX*users_external`' . ' WHERE LOWER(`uid`) = LOWER(?) AND `backend` = ?' , array ( $ uid , $ this -> backend ) ) ; return $ result -> fetchOne ( ) > 0 ; }
Check if a user exists
 @param string $uid the username
Check if a user exists @param string $uid the username