Changes to schedule for frontend
This commit is contained in:
@@ -16,9 +16,14 @@ class Program extends Model {
|
||||
public function __construct($data) {
|
||||
parent::__construct($data);
|
||||
|
||||
$this->isSpecial = ($data->priority < 2);
|
||||
if(!isset($data->isSpecial) && isset($data->priority)) {
|
||||
$this->isSpecial = ($data->priority < 2);
|
||||
}
|
||||
|
||||
if(($mailComma = strpos($data->email, ',')) !== false) {
|
||||
$this->email = substr($data->email, 0, $mailComma);
|
||||
}
|
||||
|
||||
$this->url = "/{$this->id}/" . parent::url_slug($this->name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user