Welcome Guest, Not a member yet? Register   Sign In
Anchor function in v3 throws an error if uri is an array
#1

Hello team,

this error can easily be fixed in url_helper.php (around line 160) by adding brackets around the preg_match expression like this

Code:
$site_url = is_array($uri)
           ? site_url($uri)
           : ( preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri) );


Thank you
Lenny
Reply


Messages In This Thread
Anchor function in v3 throws an error if uri is an array - by lenny - 04-10-2015, 04:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB