* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Add points to account
// @TODO Try to rewrite the following unset()
unset($GLOBALS['ref_level']);
- $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, strtolower(getBegMode()));
+ $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode());
}
// Subtract begged points from member account if the admin has selected one
- if (getBegUserid() > 0) {
+ if (isValidUserId(getBegUserid())) {
// Subtract from this account
subtractPoints('beg_payout', getBegUserid(), $points);
} // END - if