From 60f78b49763298454498e65f76ddf999f950fa69 Mon Sep 17 00:00:00 2001 From: Emmanuel Grognet Date: Fri, 16 May 2014 08:25:15 +0200 Subject: fix wrong if expression in link_tag --- system/helpers/html_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers/html_helper.php') diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index d8c3e6d89..e8cef37b7 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -292,7 +292,7 @@ if ( ! function_exists('link_tag')) } else { - if ( ! preg_match('#^([a-z]+:)?//#i', $href)) + if (preg_match('#^([a-z]+:)?//#i', $href)) { $link .= 'href="'.$href.'" '; } -- cgit v1.2.3-24-g4f1b