Bug fixes schedule

This commit is contained in:
2017-07-09 23:08:05 +02:00
parent b86d4da26b
commit af370846e6
2 changed files with 30 additions and 21 deletions

View File

@@ -7,6 +7,7 @@ class Program extends Model {
public $name;
public $description;
public $email;
public $isSpecial;
// TODO: Implementeren
public $hosts;
@@ -15,6 +16,9 @@ class Program extends Model {
public function __construct($data) {
parent::__construct($data);
$this->email = explode(',', $data->email);
$this->isSpecial = ($data->priority < 2);
if(($mailComma = strpos($data->email, ',')) !== false) {
$this->email = substr($data->email, 0, $mailComma);
}
}
}