mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 23:05:37 +00:00
SonarCloud Cleanups
This commit is contained in:
@@ -131,6 +131,7 @@ if (mysqli_num_rows($sql_failed_queue) > 0) {
|
|||||||
$email_content = $row['email_content'];
|
$email_content = $row['email_content'];
|
||||||
$email_queued_at = $row['email_queued_at'];
|
$email_queued_at = $row['email_queued_at'];
|
||||||
$email_sent_at = $row['email_sent_at'];
|
$email_sent_at = $row['email_sent_at'];
|
||||||
|
$email_ics_str = $row['email_cal_str'];
|
||||||
// Increment the attempts
|
// Increment the attempts
|
||||||
$email_attempts = intval($row['email_attempts']) + 1;
|
$email_attempts = intval($row['email_attempts']) + 1;
|
||||||
|
|
||||||
@@ -155,7 +156,8 @@ if (mysqli_num_rows($sql_failed_queue) > 0) {
|
|||||||
$email_recipient,
|
$email_recipient,
|
||||||
$email_recipient_name,
|
$email_recipient_name,
|
||||||
$email_subject,
|
$email_subject,
|
||||||
$email_content
|
$email_content,
|
||||||
|
$email_ics_str
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($mail !== true) {
|
if ($mail !== true) {
|
||||||
|
|||||||
@@ -1053,8 +1053,6 @@ function createiCalStr($datetime, $title, $description, $location) {
|
|||||||
// Todo: add organizer details
|
// Todo: add organizer details
|
||||||
// $event->addNode(new ZCiCalDataNode("ORGANIZER;CN=Organizer Name:MAILTO:organizer@example.com"));
|
// $event->addNode(new ZCiCalDataNode("ORGANIZER;CN=Organizer Name:MAILTO:organizer@example.com"));
|
||||||
|
|
||||||
// Export the iCal object to a string
|
// Return the iCal string
|
||||||
$ics_feed = $cal_event->export();
|
return $cal_event->export();
|
||||||
|
|
||||||
return $ics_feed;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user