Skip to content
Snippets Groups Projects
Commit 07e33508 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #488 from kurund/notice-fixes

notice fixes
parents cad125da a019ffee
No related branches found
No related tags found
No related merge requests found
......@@ -414,7 +414,7 @@ INNER JOIN civicrm_custom_group grp on fld.custom_group_id = grp.id
* @return $voterClause as a string
* @static
*/
function voterClause($params) {
static public function voterClause($params) {
$voterClause = array();
$fromClause = $whereClause = NULL;
if (!is_array($params) || empty($params)) {
......
......@@ -399,7 +399,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
$survey = CRM_Campaign_BAO_Survey::create($params);
// create report if required.
if ( !$this->_reportId && $survey->id && $params['create_report'] ) {
if ( !$this->_reportId && $survey->id && CRM_Utils_Array::value('create_report', $params) ) {
$activityStatus = CRM_Core_PseudoConstant::activityStatus('name');
$activityStatus = array_flip($activityStatus);
$this->_params =
......
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