Cleanup phpdoc comments
[civicrm-core.git] / CRM / Member / Import / Form / Preview.php
index 6626a75601ab4add1b2de1b27d038155d0851ca3..159619eb041628d99ac1308f3cc8335c5732bd6d 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$
  *
  */
@@ -40,7 +40,7 @@
 class CRM_Member_Import_Form_Preview extends CRM_Import_Form_Preview {
 
   /**
-   * Function to set variables up before form is built
+   * Set variables up before form is built
    *
    * @return void
    * @access public
@@ -131,14 +131,14 @@ class CRM_Member_Import_Form_Preview extends CRM_Import_Form_Preview {
     foreach ($mapper as $key => $value) {
       $mapperKeys[$key] = $mapper[$key][0];
 
-      if (CRM_Utils_Array::value(1, $mapper[$key]) && is_numeric($mapper[$key][1])) {
+      if (!empty($mapper[$key][1]) && is_numeric($mapper[$key][1])) {
         $mapperLocType[$key] = $mapper[$key][1];
       }
       else {
         $mapperLocType[$key] = NULL;
       }
 
-      if (CRM_Utils_Array::value(2, $mapper[$key]) && (!is_numeric($mapper[$key][2]))) {
+      if (!empty($mapper[$key][2]) && (!is_numeric($mapper[$key][2]))) {
         $mapperPhoneType[$key] = $mapper[$key][2];
       }
       else {