Update packlink.php

Fixed problems of compatibility between versions