Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix comment embedding to not turn a valid categoryID of zero into null

  • Loading branch information...
commit 27e8ca15c3d1b6cabeb9c29f7993841ff655402e 1 parent c59502f
@linc linc authored
View
2  applications/vanilla/controllers/class.discussioncontroller.php
@@ -702,7 +702,7 @@ public function Embed($DiscussionID = '', $DiscussionStub = '', $Offset = '', $L
'DateInserted' => Gdn_Format::ToDateTime(),
'UpdateUserID' => $SystemUserID,
'DateUpdated' => Gdn_Format::ToDateTime(),
- 'CategoryID' => $CategoryID == '' ? NULL : $CategoryID,
+ 'CategoryID' => $CategoryID,
'ForeignID' => $ForeignID,
'Type' => $ForeignType,
'Name' => $ForeignName == '' ? T('Undefined foreign content') : $ForeignName,
Please sign in to comment.
Something went wrong with that request. Please try again.