- bei der warnung buchung vorhanden, name hinzugefuegt

This commit is contained in:
ma0048
2022-11-29 10:17:32 +01:00
parent 37ec8d84e5
commit 381fa2ed7e
3 changed files with 33 additions and 13 deletions
+16
View File
@@ -2499,7 +2499,23 @@ if(!$error)
}
if($exists)
{
$return = true;
$zusatz = "\n";
if (count($exists) > 10)
{
$zusatz .= "und ";
$persons = implode("\n- ", array_slice($exists, 0, 10));
if (count($exists) === 11)
$zusatz .= "einer weiteren Person.";
else
$zusatz .= (count($exists) - 10) . " weiteren Personen.";
}
else
$persons = implode("\n- ", $exists);
$data = "Es ist bereits eine Buchung vorhanden:\n- ". $persons . $zusatz ." Trotzdem fortfahren?";
}
else
$return = false;
}