Bernd Wurst commited on 2023-02-06 09:27:42
Zeige 1 geänderte Dateien mit 3 Einfügungen und 2 Löschungen.
| ... | ... |
@@ -116,19 +116,20 @@ Subdomains können grundsätzlich nur durch Administratoren eingerichtet und ver |
| 116 | 116 |
if ($acc['autoresponder']) {
|
| 117 | 117 |
$now = date('Y-m-d');
|
| 118 | 118 |
$valid_from = $acc['autoresponder']['valid_from']; |
| 119 |
- $valid_from_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_from']));
|
|
| 120 | 119 |
$valid_until = $acc['autoresponder']['valid_until']; |
| 121 |
- $valid_until_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_until']));
|
|
| 122 | 120 |
if ($valid_from == null) {
|
| 123 | 121 |
// Autoresponder abgeschaltet |
| 124 | 122 |
//array_push($actions, "<strike>Automatische Antwort versenden</strike> (Abgeschaltet)"); |
| 125 | 123 |
} elseif ($valid_from > $now) {
|
| 124 |
+ $valid_from_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_from']));
|
|
| 126 | 125 |
array_push($actions, "<strike>Automatische Antwort versenden</strike> (Wird aktiviert am {$valid_from_string})");
|
| 127 | 126 |
} elseif ($valid_until == null) {
|
| 128 | 127 |
array_push($actions, "Automatische Antwort versenden (Unbefristet)"); |
| 129 | 128 |
} elseif ($valid_until > $now) {
|
| 129 |
+ $valid_until_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_until']));
|
|
| 130 | 130 |
array_push($actions, "Automatische Antwort versenden (Wird deaktiviert am {$valid_until_string})");
|
| 131 | 131 |
} elseif ($valid_until < $now) {
|
| 132 |
+ $valid_until_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_until']));
|
|
| 132 | 133 |
array_push($actions, "<strike>Automatische Antwort versenden</strike> (Automatisch abgeschaltet seit {$valid_until_string})");
|
| 133 | 134 |
} |
| 134 | 135 |
} |
| 135 | 136 |