projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'JohnFF-patch-1'
[civicrm-core.git]
/
CRM
/
Friend
/
Form.php
diff --git
a/CRM/Friend/Form.php
b/CRM/Friend/Form.php
index dc0ee797eeca109f6bff9f3d6591d1be3b3a8483..048ac060e41fae0fdfed10778b872c7f0323dd33 100644
(file)
--- a/
CRM/Friend/Form.php
+++ b/
CRM/Friend/Form.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | 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'));
}
@@
-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