Skip to content
Snippets Groups Projects
Commit 6c362896 authored by Uma's avatar Uma
Browse files

Merge branch 'fix_php72_warning_on_campaigns' into 'master'

#1296 Fix php72 warning on Campaigns.php

See merge request !639
parents 3a3e1514 659c7b9a
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ class Campaigns extends CRMEntity {
if($return_value == null)
$return_value = Array();
else if($is_CampaignStatusAllowed) {
else if($is_CampaignStatusAllowed && is_array($return_value['header'])) {
$statusPos = count($return_value['header']) - 2; // Last column is for Actions, exclude that. Also the index starts from 0, so reduce one more count.
$return_value = $this->add_status_popup($return_value, $statusPos, 'Accounts');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment