Fixed Incorrect signature for XenForo_Model_Attachment::prepareAttachmentConditions

xfrocks

Well-known member
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 :)
 
Top Bottom