From 51f5d0873ac0228228e77104b2b440c645a15dd5 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 22 May 2013 17:59:59 +0200 Subject: [PATCH] Use square brackets instead of curly braces for char of a string The use of curly braces is deprecated in php 4.0, so changing it to square brackets Change-Id: Iffab398c8d18b386ec2e1a5de751c095b7a9cc77 --- includes/db/DatabasePostgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 367335e154..e564a162dd 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -1032,11 +1032,11 @@ __INDEXATTR__; return $output; } do { - if ( '{' != $text{$offset} ) { + if ( '{' != $text[$offset] ) { preg_match( "/(\\{?\"([^\"\\\\]|\\\\.)*\"|[^,{}]+)+([,}]+)/", $text, $match, 0, $offset ); $offset += strlen( $match[0] ); - $output[] = ( '"' != $match[1]{0} + $output[] = ( '"' != $match[1][0] ? $match[1] : stripcslashes( substr( $match[1], 1, -1 ) ) ); if ( '},' == $match[3] ) { -- 2.20.1