Skip to content

Commit

Permalink
Merge pull request #48 from fritzmg/patch-1
Browse files Browse the repository at this point in the history
Check for false instead of null in ModuleEventRegistration
  • Loading branch information
kmielke authored Aug 10, 2021
2 parents 7364133 + da2d6a2 commit f5de73d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/modules/ModuleEventRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected function compile()
$arrTokens = array();
$objResult = CalendarLeadsModel::findByLeadEventMail($lead_id, $event_id, $email);

if ($objResult !== null) {
if ($objResult !== false) {
// zuerst den entsprechenden Datensatz updaten...
$published = $this->regtype;
$result = CalendarLeadsModel::updateByPid($objResult->pid, $published);
Expand Down Expand Up @@ -149,4 +149,4 @@ protected function compile()

$this->Template->event_registration = $objTemplate->parse();
}
}
}

0 comments on commit f5de73d

Please sign in to comment.