You are here

function referral_get_user in User Referral 5

Same name and namespace in other branches
  1. 6 referral.module \referral_get_user()
  2. 7 referral.module \referral_get_user()

File

./referral.module, line 150

Code

function referral_get_user($uid) {
  $referral_uid = false;
  $result = db_query('SELECT referral_uid FROM {referral} WHERE uid = %d', $uid);
  while ($data = db_fetch_object($result)) {
    $referral_uid = $data->referral_uid;
  }
  return $referral_uid;
}