Commits

Anonymous committed 01b488c

  • Participants
  • Parent commits 0004f5d

Comments (0)

Files changed (1)

File system/helpers/url_helper.php

  */	
 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 == '')
 	{