Skip to content

Commit

Permalink
Don't create activity if contact table is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pfigel committed Jul 4, 2018
1 parent c224359 commit 5803335
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Sqltasks/Action/CreateActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public function createMassActivity() {
if ($entries_exist) {
$this->setHasExecuted();
}
else {
return;
}

// create activity first
$activity_data = array(
Expand Down

0 comments on commit 5803335

Please sign in to comment.