Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -95,7 +95,7 @@ class _credit extends \IPS\Dispatcher\Controller
|
||||
/* Can we withdraw? */
|
||||
$canWithdraw = FALSE;
|
||||
$withdrawOptions = json_decode( \IPS\Settings::i()->nexus_payout, TRUE );
|
||||
if ( \count( $withdrawOptions ) )
|
||||
if( \is_countable( $withdrawOptions ) AND \count( $withdrawOptions ) )
|
||||
{
|
||||
foreach ( \IPS\nexus\Money::currencies() as $currency )
|
||||
{
|
||||
@@ -149,7 +149,7 @@ class _credit extends \IPS\Dispatcher\Controller
|
||||
{
|
||||
unset( $withdrawOptions['Stripe'] );
|
||||
}
|
||||
if ( \count( $withdrawOptions ) )
|
||||
if ( \is_countable( $withdrawOptions ) AND \count( $withdrawOptions ) )
|
||||
{
|
||||
$withdrawForm = new \IPS\Helpers\Form( 'withdraw', 'withdraw_credit' );
|
||||
|
||||
@@ -254,7 +254,7 @@ class _credit extends \IPS\Dispatcher\Controller
|
||||
}
|
||||
}
|
||||
|
||||
if ( \count( $withdrawOptions ) > 1 )
|
||||
if ( \is_countable( $withdrawOptions ) AND \count( $withdrawOptions ) > 1 )
|
||||
{
|
||||
$withdrawForm->add( new \IPS\Helpers\Form\Radio( 'withdraw_method', NULL, TRUE, array( 'options' => $options, 'toggles' => $toggles ) ) );
|
||||
}
|
||||
|
||||
@@ -63,6 +63,10 @@ class _donations extends \IPS\Dispatcher\Controller
|
||||
*/
|
||||
public function donate()
|
||||
{
|
||||
if( !\IPS\Member::loggedIn()->member_id )
|
||||
{
|
||||
\IPS\Output::i()->error( 'no_module_permission_guest', '1X238/3', 403, '' );
|
||||
}
|
||||
try
|
||||
{
|
||||
$goal = \IPS\nexus\Donation\Goal::load( \IPS\Request::i()->id );
|
||||
|
||||
Reference in new issue
Block a user