public function _creditCheck($amount)
	{
		$b = $this->balance;
		$b -= $amount;
		$c = $this->credit;
		$ccheck = $b - $c;

		if ($b >= 0 && $ccheck >= 0)
		{
			return true;
		}

		$this->setError('Not enough points in user account to process transaction.');
		return false;
	}
public function _creditCheck($amount)
	{
		$b = $this->balance;
		$b -= $amount;
		$c = $this->credit;
		$ccheck = $b - $c;

		if ($b >= 0 && $ccheck >= 0)
		{
			return true;
		}

		$this->setError('Not enough points in user account to process transaction.');
		return false;
	}
public function _creditCheck ( $ amount ) { $ b = $ this -> balance ; $ b -= $ amount ; $ c = $ this -> credit ; $ ccheck = $ b - $ c ; if ( $ b >= 0 && $ ccheck >= 0 ) { return true ; } $ this -> setError ( 'Not enough points in user account to process transaction.' ) ; return false ; }
Check that they have enough in their account to perform the transaction.

@param   number   $amount  Amount to subtract from balance
@return  boolean  True if they have enough credit
Check that they have enough in their account to perform the transaction .