Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
e7449cb8
Commit
e7449cb8
authored
Oct 20, 2021
by
Michael Iseard
Browse files
Return empty string if no campaign_id found
parent
6eed1556
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Controller/Table/TransactionsTable.php
View file @
e7449cb8
...
@@ -437,6 +437,8 @@ class TransactionsTable extends WP_List_Table {
...
@@ -437,6 +437,8 @@ class TransactionsTable extends WP_List_Table {
*/
*/
protected
function
column_campaign_id
(
array
$item
):
string
{
protected
function
column_campaign_id
(
array
$item
):
string
{
if
(
!
$item
[
'campaign_id'
])
return
''
;
try
{
try
{
$campaign
=
Settings
::
get_campaign
(
$item
[
'campaign_id'
]
);
$campaign
=
Settings
::
get_campaign
(
$item
[
'campaign_id'
]
);
}
catch
(
Exception
$e
)
{
}
catch
(
Exception
$e
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment