Bug fixes schedule
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user