SonarCloud Cleanups

This commit is contained in:
o-psi 2024-02-09 16:40:51 -06:00
parent 971830ac21
commit f0d2f5b02a
4 changed files with 8 additions and 8 deletions

View File

@ -131,6 +131,7 @@ if (mysqli_num_rows($sql_failed_queue) > 0) {
$email_content = $row['email_content'];
$email_queued_at = $row['email_queued_at'];
$email_sent_at = $row['email_sent_at'];
$email_ics_str = $row['email_cal_str'];
// Increment the attempts
$email_attempts = intval($row['email_attempts']) + 1;
@ -155,7 +156,8 @@ if (mysqli_num_rows($sql_failed_queue) > 0) {
$email_recipient,
$email_recipient_name,
$email_subject,
$email_content
$email_content,
$email_ics_str
);
if ($mail !== true) {

View File

@ -1053,8 +1053,6 @@ function createiCalStr($datetime, $title, $description, $location) {
// Todo: add organizer details
// $event->addNode(new ZCiCalDataNode("ORGANIZER;CN=Organizer Name:MAILTO:organizer@example.com"));
// Export the iCal object to a string
$ics_feed = $cal_event->export();
return $ics_feed;
// Return the iCal string
return $cal_event->export();
}