Wertprüfung eingefügt

This commit is contained in:
Matthias Grief
2024-12-13 23:25:30 +01:00
parent d5cfc0383e
commit 10b828ac62

View File

@@ -20,7 +20,14 @@ class Task
public function __construct(string $text, array $variables)
{
$this->text = $text;
$this->variables = $variables;
$this->variables = array();
foreach ($variables as $variable => $value) {
if(!is_string($value)) {
continue;
}
$this->variables[$variable] = $value;
}
}
/**