Merge pull request #2564 from jaapjansma/CRM-14276
[civicrm-core.git] / CRM / Friend / Form.php
index 0a74441494fd2cd9837c65c2651f2a8282cb37f4..2158783daf95ffe9adf05526b89557e3ce16914c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -104,7 +104,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
         $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'));
       }
 
@@ -150,7 +150,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
    *
    * @access public
    *
-   * @return None
+   * @return void
    */
   public function setDefaultValues() {
     $defaults = array();
@@ -177,7 +177,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
   /**
    * Function to build the form
    *
-   * @return None
+   * @return void
    * @access public
    */
   public function buildQuickForm() {
@@ -272,7 +272,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
    *
    * @access public
    *
-   * @return None
+   * @return void
    */
   public function postProcess() {
     // get the submitted form values.