From: Kurund Jalmi Date: Sat, 20 Apr 2013 07:52:30 +0000 (-0700) Subject: notice fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a019ffee9c5ce313bfad6b06c61b4553503d4861;p=civicrm-core.git notice fixes --- diff --git a/CRM/Campaign/BAO/Query.php b/CRM/Campaign/BAO/Query.php index b9d771fa2a..d7c810ef9d 100755 --- a/CRM/Campaign/BAO/Query.php +++ b/CRM/Campaign/BAO/Query.php @@ -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)) { diff --git a/CRM/Campaign/Form/Survey/Results.php b/CRM/Campaign/Form/Survey/Results.php index 7c2ceba0f5..304b545c2d 100644 --- a/CRM/Campaign/Form/Survey/Results.php +++ b/CRM/Campaign/Form/Survey/Results.php @@ -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 =