Commit e2264b32 authored by Mayur Jadhav's avatar Mayur Jadhav

RG-118 fixed error notice menstion in comments as well as fixed other notices too

parent 1e9f751d
......@@ -128,7 +128,7 @@ class CRM_Grant_BAO_GrantProgram extends CRM_Grant_DAO_GrantProgram {
$grantPrograms[$dao->id] = $dao->label;
}
}
return $grantPrograms;
return empty($grantPrograms) ? array() : $grantPrograms;
}
static function contributionTypes() {
......
......@@ -57,7 +57,7 @@ class CRM_Grant_Form_GrantProgramView extends CRM_Core_Form {
$this->assign('grantProgramStatus', CRM_Grant_BAO_GrantProgram::getOptionName($values['status_id']));
$this->assign('contributionType', $contributionTypes[$values['financial_type_id']] );
$this->assign('grantProgramAlgorithm', CRM_Grant_BAO_GrantProgram::getOptionName( $values['allocation_algorithm']));
$this->assign('grant_program_id', $grantPrograms[$values['grant_program_id']]);
$this->assign('grant_program_id', empty($grantPrograms[$values['grant_program_id']]) ? NULL : $grantPrograms[$values['grant_program_id']]);
$grantTokens = array('label','name','total_amount',
'remainder_amount', 'allocation_date', 'is_active', 'is_auto_email');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment