From 13aec1cbe4d345afe4714c1e515e2df97673ffa4 Mon Sep 17 00:00:00 2001 From: Sarah Gladstone Date: Tue, 29 Apr 2014 10:16:13 -0700 Subject: [PATCH] Update Membership.php Change compare to false to "empty" function --- CRM/Member/Form/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index c298cca5fd..3d826f3ec4 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -982,7 +982,7 @@ WHERE id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )'; foreach($tmp_statuses as $cur_stat) { $status_ids[] = $cur_stat['id']; } - if( $params['status_id'] == false || in_array( $params['status_id'] , $status_ids) == false ) { + if( empty( $params['status_id'] ) || in_array( $params['status_id'] , $status_ids) == false ) { $errors['status_id'] = ts('Please enter a status that does NOT represent a current membership status.'); $errors['is_override'] = ts('This must be checked because you set an End Date for a lifetime membership'); } -- 2.25.1