️ avoid "missing index" warnings

This commit is contained in:
Marc Michalsky forumZFD 2021-04-12 11:39:59 +02:00
parent 4bcc4cf1fb
commit 9b45d4a1fa
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 6 additions and 4 deletions

View file

@ -74,7 +74,9 @@ abstract class CRM_TwingleCampaign_BAO_Campaign {
);
// Set id
$values_prepared_for_import['id'] = $this->id;
if (isset($this->id)) {
$values_prepared_for_import['id'] = $this->id;
}
// Set a flag to not trigger the hook
if ($no_hook) {