Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -43,6 +43,7 @@ class _CreditCard extends \IPS\Helpers\Form\FormAbstract
'attr' => NULL,
'jsRequired'=> FALSE,
'names' => TRUE,
'dummy' => FALSE,
);
/**
@@ -63,7 +64,7 @@ class _CreditCard extends \IPS\Helpers\Form\FormAbstract
$number = $this->value['number'];
$expMonth = $this->value['exp_month'];
$expYear = $this->value['exp_year'];
$expYear = $this->value['ccv'];
$ccv = $this->value['ccv'];
}
elseif ( $this->value instanceof \IPS\nexus\CreditCard )
{
@@ -150,10 +151,10 @@ class _CreditCard extends \IPS\Helpers\Form\FormAbstract
return $obj;
}
/* Or if we've just not given anything, return NULL */
/* Or if we've just not given anything, return no value */
if ( !$this->value['number'] )
{
return NULL;
return '';
}
/* But if we do, we can build an object */
@@ -163,7 +164,7 @@ class _CreditCard extends \IPS\Helpers\Form\FormAbstract
}
catch ( \InvalidArgumentException $e )
{
throw new \DomainException( 'card_number_invalid' );
throw new \DomainException( $e->getMessage() );
}
catch ( \DomainException $e )
{