// 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);