Skip to content

Commit e211ef0

Browse files
committed
Check if there is a title or body set
Signed-off-by: Roland Dalmulder <[email protected]>
1 parent a083871 commit e211ef0

File tree

1 file changed

+2
-2
lines changed
  • administrator/components/com_patchtester/PatchTester/Model

1 file changed

+2
-2
lines changed

administrator/components/com_patchtester/PatchTester/Model/PullsModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ public function requestFromGithub($page)
362362
// Build the data object to store in the database
363363
$pullData = [
364364
(int) $pull->number,
365-
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->title, 150)),
366-
$this->getDbo()->quote(HTMLHelper::_('string.truncate', $pull->body, 100)),
365+
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->title ?? ''), 150)),
366+
$this->getDbo()->quote(HTMLHelper::_('string.truncate', ($pull->body ?? ''), 100)),
367367
$this->getDbo()->quote($pull->html_url),
368368
(int) $isRTC,
369369
(int) $isNPM,

0 commit comments

Comments
 (0)