From 8b44f9032cf4523aac911e3c1a94bd2aaf23b503 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 22 Sep 2011 14:57:08 +0000 Subject: [PATCH] Fix single character access --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 4bb3dc6c00..84ede27e7a 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1305,7 +1305,7 @@ class Linker { # bug 7425 $target = trim( $target ); # Look at the first character - if ( $target != '' && $target { 0 } === '/' ) { + if ( $target != '' && $target[0] === '/' ) { # / at end means we don't want the slash to be shown $m = array(); $trailingSlashes = preg_match_all( '%(/+)$%', $target, $m ); -- 2.20.1