Skip to content

Commit

Permalink
Merge pull request #502 from subjectsplus/fix-subjectspecialist-cgb
Browse files Browse the repository at this point in the history
added conditional to check for empty string
  • Loading branch information
cgb37 committed May 3, 2016
2 parents 04a5379 + 7325e2a commit 68db5b0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -46,7 +46,7 @@

}

$this->_body .= "<h4>{$staffMember['fname']} {$staffMember['lname']}</h4>";
$this->_body .= "<h4>{$staffMember['fname']} {$staffMember['lname']}</h4>";

$this->_body .= "<input type='text' name='SubjectSpecialist-extra-staffId{$staffId}' value='{$staffId}' style='display:none;' />";

Expand Down Expand Up @@ -86,7 +86,7 @@

//$this->_body .= $this->_editor;

if(isset($this->_body_content[0]['body']) && is_array($this->_body_content[0]['body'])) {
if(isset($this->_body_content[0]['body']) && is_array($this->_body_content[0]['body']) && ($this->_body_content[0]['body'] != '') ) {
$this->_body .= "<textarea cols='60' id='editor1' name='editor1' rows='10'>{$this->_body_content[0]['body']}</textarea>";
} else {
$this->_body .= "<textarea cols='60' id='editor1' name='editor1' rows='10'></textarea>";
Expand Down

0 comments on commit 68db5b0

Please sign in to comment.