CRM-20662 Ensure that the system only tries populating the domain_id field if there...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 30 May 2017 22:15:10 +0000 (08:15 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 30 May 2017 22:15:10 +0000 (08:15 +1000)
CRM/Upgrade/Incremental/php/FourSeven.php

index c3f9319287ad09e0d0d094eef6d003021ee2ee83..aea404fd539b5609555a47507f863a78c0dcd2dc 100644 (file)
@@ -1094,7 +1094,7 @@ FROM `civicrm_dashboard_contact` JOIN `civicrm_contact` WHERE civicrm_dashboard_
    */
   public static function populateSMSProviderDomainId() {
     $count = CRM_Core_DAO::singleValueQuery("SELECT count(id) FROM civicrm_domain");
-    if ($count = 1) {
+    if ($count == 1) {
       CRM_Core_DAO::executeQuery("UPDATE civicrm_sms_provider SET domain_id = (SELECT id FROM civicrm_domain)");
     }
     if (!parent::checkFKExists('civicrm_sms_provider', 'FK_civicrm_sms_provider_domain_id')) {