Use square brackets instead of curly braces for char of a string
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 22 May 2013 15:59:59 +0000 (17:59 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 22 May 2013 15:59:59 +0000 (17:59 +0200)
The use of curly braces is deprecated in php 4.0, so changing it to
square brackets

Change-Id: Iffab398c8d18b386ec2e1a5de751c095b7a9cc77

includes/db/DatabasePostgres.php

index 367335e..e564a16 100644 (file)
@@ -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] ) {