Use Elvis/ternary operator instead of double pipes
This commit is contained in:
parent
310a6098a0
commit
599adda141
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class template {
|
|||
$savedata = new \stdClass();
|
||||
$savedata->id = $this->id;
|
||||
$savedata->name = $data->name;
|
||||
$savedata->html = $data->html || $this->html;
|
||||
$savedata->html = $data->html ?: $this->html;
|
||||
$savedata->timemodified = time();
|
||||
|
||||
$DB->update_record('htmlcert_templates', $savedata);
|
||||
|
|
Loading…
Reference in a new issue