Minor code cleanup to contribution pages
[civicrm-core.git] / CRM / Contribute / Form / Contribution / Main.php
index 223d2c7805dec9bba81f725a05601d0d9b6aff6d..6209a86596c3d3d36f74d20d829a5ab3a27c7ffd 100644 (file)
@@ -371,7 +371,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     // If we configured price set for contribution page
     // we are not allow membership signup as well as any
     // other contribution amount field, CRM-5095
-    if (isset($this->_priceSetId) && $this->_priceSetId) {
+    if (!empty($this->_priceSetId)) {
       $this->add('hidden', 'priceSetId', $this->_priceSetId);
       // build price set form.
       $this->set('priceSetId', $this->_priceSetId);