Wertprüfung eingefügt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user