Check if there is a title or body set

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2023-05-12 15:14:16 +02:00
parent a083871234
commit e211ef0271
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
1 changed files with 2 additions and 2 deletions

View File

@ -362,8 +362,8 @@ class PullsModel extends ListModel
// 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,