summaryrefslogtreecommitdiffstats
path: root/system/helpers/url_helper.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-06 04:14:53 +0200
committeradmin <devnull@localhost>2006-09-06 04:14:53 +0200
commit4d07c1528873d70efcb6fbf305a8ab930a9bc758 (patch)
treed27b0d94b28091db1210f8d1238a949976e633e5 /system/helpers/url_helper.php
parentfdd928182d6691ed2073f6f3a90427157007f54b (diff)
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r--system/helpers/url_helper.php9
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 == '')
{