Merge pull request #2744 from pratik-joshi/CRM-13992_temp_fix
[civicrm-core.git] / CRM / Contact / Form / Edit / Organization.php
index fcb81085b72d22436492b4b1786e490ca1eddce0..d86b0a8a2c9d5833c4d0de30b4f15bce608da8ed 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_Organization {
     $primaryID = CRM_Contact_Form_Contact::formRule($fields, $errors, $contactID);
 
     // make sure that organization name is set
-    if (!CRM_Utils_Array::value('organization_name', $fields)) {
+    if (empty($fields['organization_name'])) {
       $errors['organization_name'] = 'Organization Name should be set.';
     }