<?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. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$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.';
}