Merge pull request #2744 from pratik-joshi/CRM-13992_temp_fix
[civicrm-core.git] / CRM / Contact / Form / Edit / Household.php
index 967915eb028cc97e4b87c27978db4dfab9dee5ea..95b1ebed68f84e6f8ffaa68dcb65d8f1cf4ff4b1 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$
  *
  */
@@ -91,7 +91,7 @@ class CRM_Contact_Form_Edit_Household {
     $primaryID = CRM_Contact_Form_Contact::formRule($fields, $errors, $contactID);
 
     // make sure that household name is set
-    if (!CRM_Utils_Array::value('household_name', $fields)) {
+    if (empty($fields['household_name'])) {
       $errors['household_name'] = 'Household Name should be set.';
     }