-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config to display CashPoints instead of Credits (#389)
- Loading branch information
1 parent
4936530
commit cd96819
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit cd96819
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about #KAFRAPOINTS ?
In PHP 7.4.33 (I don't know with other PHP versions) it shows an error when there are no cash points.
To fix this I had to add a default value (0) if there are no cash points.
$account->balance = $sth->fetch()->value ?? 0;