small fix

This commit is contained in:
Harry Bomrah 2014-12-01 14:48:39 +08:00
parent eeebed8d7b
commit ff17799e83
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ module ApplicationHelper
def get_target(link)
target = "_blank"
if link.nil?
if !link.nil?
link = link.split("?").first
temp_url = URI.parse(link)
if temp_url.host.nil?