Merge pull request #15382 from totten/5.18-note-event
[civicrm-core.git] / CRM / Price / Form / Field.php
index 3888e781e896f02cef36eced2ea0d6fbb94f6221..08ff9e40afb677af01779a5e23e029bed7eccd7e 100644 (file)
@@ -64,6 +64,7 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
 
   /**
    * Variable is set if price set is used for membership.
+   * @var bool
    */
   protected $_useForMember;
 
@@ -421,7 +422,7 @@ class CRM_Price_Form_Field extends CRM_Core_Form {
     }
 
     if ((is_numeric(CRM_Utils_Array::value('count', $fields)) &&
-        CRM_Utils_Array::value('count', $fields) == 0
+        empty($fields['count'])
       ) &&
       (CRM_Utils_Array::value('html_type', $fields) == 'Text')
     ) {