Merge pull request #4607 from samuelsov/CRM-15637
[civicrm-core.git] / CRM / Contribute / Form / Contribution / Main.php
index f7d23bb356786da7edb2bf11932a0ce86f886330..48085c009320a9f0c5c1fcb8e7a8af4d06ea38e7 100644 (file)
@@ -529,7 +529,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     }
 
     //to create an cms user
-    if (!$this->_userID) {
+    if (!$this->_contactID) {
       $createCMSUser = FALSE;
 
       if ($this->_values['custom_pre_id']) {