From: Sam Reed Date: Thu, 22 Sep 2011 14:57:08 +0000 (+0000) Subject: Fix single character access X-Git-Tag: 1.31.0-rc.0~27477 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=8b44f9032cf4523aac911e3c1a94bd2aaf23b503;p=lhc%2Fweb%2Fwiklou.git Fix single character access --- 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 );