Skip to content

Commit

Permalink
Check if there is a title or body set
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dalmulder <[email protected]>
  • Loading branch information
roland-d committed May 12, 2023
1 parent a083871 commit e211ef0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ public function requestFromGithub($page)
// Build the data object to store in the database
$pullData = [
(int) $pull->number,
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->title, 150)),
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->body, 100)),
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->title ?? ''), 150)),
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->body ?? ''), 100)),
$this->getDbo()->quote($pull->html_url),
(int) $isRTC,
(int) $isNPM,
Expand Down

0 comments on commit e211ef0

Please sign in to comment.