Mass cleanup of docblocks/code/comments
[civicrm-core.git] / CRM / Admin / Form / OptionGroup.php
index da8b2be36f57c760689e2bb2ba064d38384982af..d95d3df76561e2aac8ccffdb3a2adcda703fcd26 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,9 +40,9 @@
 class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
 
   /**
-   * Function to build the form
+   * Build the form object
    *
-   * @return None
+   * @return void
    * @access public
    */
   public function buildQuickForm() {
@@ -90,7 +90,7 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
           $element->freeze();
         }
       }
-      if (CRM_Utils_Array::value('is_reserved', $this->_values)) {
+      if (!empty($this->_values['is_reserved'])) {
         $this->freeze(array('name', 'is_active'));
       }
     }
@@ -99,11 +99,11 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
   }
 
   /**
-   * Function to process the form
+   * Process the form submission
    *
    * @access public
    *
-   * @return None
+   * @return void
    */
   public function postProcess() {
     CRM_Utils_System::flushCache();