Does this logic make sense? If $can_revert is TRUE, but you $vars['version'] isn't set then we will try to call the l function below with a non-existant $link variable.