mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Some type check fixes
This commit is contained in:
parent
d4707eb595
commit
bd4b8d8944
6 changed files with 6 additions and 5 deletions
|
@ -63,7 +63,7 @@ class Payment extends PropertiesBase{
|
|||
', [$this->UserId, $this->Created, $this->ChannelId, $this->TransactionId, $this->Amount, $this->Fee, $this->IsRecurring, $this->IsMatchingDonation]);
|
||||
}
|
||||
catch(PDOException $ex){
|
||||
if($ex->errorInfo[1] == 1062){
|
||||
if(($ex->errorInfo[1] ?? 0) == 1062){
|
||||
// Duplicate unique key; transction ID already exists
|
||||
throw new Exceptions\PaymentExistsException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue