Fixed NULL notes causing issue

Fixed isue where having null in notes value meant the textarea didnt close out
This commit is contained in:
cp6 2021-01-24 13:30:22 +11:00
parent ec901e9620
commit 33a680de0e

View File

@ -2124,7 +2124,11 @@ class idlers extends helperFunctions
$this->rowColOpen('row m-section-row', 'col-12 text-center'); $this->rowColOpen('row m-section-row', 'col-12 text-center');
$this->htmlPhrase('p', 'm-section-text', 'Notes'); $this->htmlPhrase('p', 'm-section-text', 'Notes');
$this->outputString("<textarea class='form-control' id='server_notes' name='server_notes' rows='4' cols='40' maxlength='255' disabled>"); $this->outputString("<textarea class='form-control' id='server_notes' name='server_notes' rows='4' cols='40' maxlength='255' disabled>");
if (is_null($data['notes']) || empty($data['notes'])){
$this->outputString('');
} else {
$this->outputString($data['notes']); $this->outputString($data['notes']);
}
$this->outputString("</textarea>"); $this->outputString("</textarea>");
$this->tagClose('div', 2); $this->tagClose('div', 2);