From 65d2572da001b14da736648b5d6282f22f3d2af6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 27 Sep 2011 16:15:29 +0000 Subject: [PATCH] Fix character access --- includes/db/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index c4e4456ac8..17aa2231b5 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1367,7 +1367,7 @@ abstract class DatabaseBase implements DatabaseType { $from = ' FROM ' . implode( ',', $this->tableNamesWithAlias( $table ) ); } } elseif ( $table != '' ) { - if ( $table { 0 } == ' ' ) { + if ( $table[0] == ' ' ) { $from = ' FROM ' . $table; } else { $from = ' FROM ' . $this->tableName( $table ); @@ -3127,7 +3127,7 @@ abstract class DatabaseBase implements DatabaseType { continue; } - if ( '-' == $line { 0 } && '-' == $line { 1 } ) { + if ( '-' == $line[0] && '-' == $line[1] ) { continue; } @@ -3142,7 +3142,7 @@ abstract class DatabaseBase implements DatabaseType { } } elseif ( !$dollarquote ) { - if ( ';' == $line { $sl } && ( $sl < 2 || ';' != $line { $sl - 1 } ) ) { + if ( ';' == $line[$sl] && ( $sl < 2 || ';' != $line[$sl - 1] ) ) { $done = true; $line = substr( $line, 0, $sl ); } -- 2.20.1