Am 16.03.2011 21:09, schrieb Steven Wheeler:
$rd=$dd; $rp=$dp; $du=$ru;
This one I do not understand. Also I do not see the code where you change $dU?
Anyway, it seems that 2 branches are added: maybe one by lcr module internally via next_gw and one manually? You can try to change $dU before calling next_gw and omit the append_branch() call.
regards klaus