• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Incorrect signature for XenForo_Model_Attachment::prepareAttachmentConditions

xfrocks

Well-known member
#1
Version: 1.1 beta
Class: XenForo_Model_Attachment
Line: 276

PHP:
public function prepareAttachmentConditions(array $conditions, array $fetchOptions)
Should be

PHP:
public function prepareAttachmentConditions(array $conditions, array &$fetchOptions)
For 2 reasons:
  1. To match with the convention in other models
  2. To allow conditions to trigger fetch options (like adding a join)
Hope this will be fixed :)