Update Link.php

Fixes error when $user_groups is false
Merge pull request #3323 from paquitodev/patch-1

Nice catch buddy - thanks a ton!