diff options
author | admin <devnull@localhost> | 2006-09-06 04:14:53 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-06 04:14:53 +0200 |
commit | 4d07c1528873d70efcb6fbf305a8ab930a9bc758 (patch) | |
tree | d27b0d94b28091db1210f8d1238a949976e633e5 /system/helpers | |
parent | fdd928182d6691ed2073f6f3a90427157007f54b (diff) |
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/url_helper.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index 09169e32e..6e2f7f452 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php @@ -90,7 +90,14 @@ function index_page() */ function anchor($uri = '', $title = '', $attributes = '') { - $site_url = ( ! preg_match('!^\w+://!i', $uri)) ? site_url($uri) : $uri; + if ( ! is_array($uri)) + { + $site_url = ( ! preg_match('!^\w+://!i', $uri)) ? site_url($uri) : $uri; + } + else + { + $site_url = site_url($uri); + } if ($title == '') { |