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

Affected version
2.0.2

Xon

Well-known member
#1
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