projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3207 from totten/master-alerts
[civicrm-core.git]
/
CRM
/
Friend
/
Form.php
diff --git
a/CRM/Friend/Form.php
b/CRM/Friend/Form.php
index 27b3ab7a50bb9e6706553893c361f04aef21f3f7..048ac060e41fae0fdfed10778b872c7f0323dd33 100644
(file)
--- a/
CRM/Friend/Form.php
+++ b/
CRM/Friend/Form.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
3
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-104,7
+104,7
@@
class CRM_Friend_Form extends CRM_Core_Form {
$params, $values, array('is_tellfriend_enabled', 'tellfriend_limit')
);
$params, $values, array('is_tellfriend_enabled', 'tellfriend_limit')
);
- if (
!CRM_Utils_Array::value('is_tellfriend_enabled', $values
)) {
+ if (
empty($values['is_tellfriend_enabled']
)) {
CRM_Core_Error::fatal(ts('Tell Friend is disable for this Personal Campaign Page'));
}
CRM_Core_Error::fatal(ts('Tell Friend is disable for this Personal Campaign Page'));
}
@@
-150,7
+150,7
@@
class CRM_Friend_Form extends CRM_Core_Form {
*
* @access public
*
*
* @access public
*
- * @return
None
+ * @return
void
*/
public function setDefaultValues() {
$defaults = array();
*/
public function setDefaultValues() {
$defaults = array();
@@
-177,7
+177,7
@@
class CRM_Friend_Form extends CRM_Core_Form {
/**
* Function to build the form
*
/**
* Function to build the form
*
- * @return
None
+ * @return
void
* @access public
*/
public function buildQuickForm() {
* @access public
*/
public function buildQuickForm() {
@@
-231,7
+231,9
@@
class CRM_Friend_Form extends CRM_Core_Form {
/**
* Function for validation
*
/**
* Function for validation
*
- * @param array $params (ref.) an assoc array of name/value pairs
+ * @param $fields
+ *
+ * @internal param array $params (ref.) an assoc array of name/value pairs
*
* @return mixed true or array of errors
* @access public
*
* @return mixed true or array of errors
* @access public
@@
-272,7
+274,7
@@
class CRM_Friend_Form extends CRM_Core_Form {
*
* @access public
*
*
* @access public
*
- * @return
None
+ * @return
void
*/
public function postProcess() {
// get the submitted form values.
*/
public function postProcess() {
// get the submitted form values.