Fixed Copying/Moving Posts is always logged as to an existing thread

Xon

Well-known member
Affected version
2.0.2
Both XF:post\Copier and XF:post\Mover call setExistingTarget like so:
Code:
$copier->setExistingTarget($options['thread_type']);

However: $options['thread_type'] is the string "new" or "existing", to casting to a boolean is always true.

Code:
public function setExistingTarget($existing)
{
   $this->existingTarget = (bool)$existing;
}
 
Top Bottom