Permalink
Browse files

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

  • Loading branch information...
1 parent c59502f commit 27e8ca15c3d1b6cabeb9c29f7993841ff655402e @linc linc committed Oct 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit 27e8ca1

Please sign in to comment.