correct precedence
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 18 Jul 2023 20:04:14 +0000 (16:04 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 18 Jul 2023 20:13:22 +0000 (16:13 -0400)
CRM/Upgrade/Incremental/sql/5.65.alpha1.mysql.tpl

index fb4aa74bf4bcdd96991a8dacab28f1ea6bd091d0..7b22176538faa19d9926dae0a19faa9d3888ffc8 100644 (file)
@@ -12,7 +12,7 @@ UPDATE civicrm_group SET `name` = `id` WHERE name IS NULL;
 
       UPDATE `civicrm_group`
       SET `frontend_description_{$locale}` = `description`
-      WHERE `frontend_description_{$locale}` IS NULL OR `frontend_description_{$locale}` = '' AND `description` <> '';
+      WHERE (`frontend_description_{$locale}` IS NULL OR `frontend_description_{$locale}` = '') AND `description` <> '';
     {/foreach}
 {else}
   UPDATE `civicrm_group`
@@ -21,7 +21,7 @@ UPDATE civicrm_group SET `name` = `id` WHERE name IS NULL;
 
   UPDATE `civicrm_group`
   SET `frontend_description` = `description`
-  WHERE `frontend_description` IS NULL OR `frontend_description` = '' AND description <> '';
+  WHERE (`frontend_description` IS NULL OR `frontend_description` = '') AND description <> '';
 {/if}
 
 {literal}