From: Sam Reed Date: Tue, 27 Sep 2011 16:15:29 +0000 (+0000) Subject: Fix character access X-Git-Tag: 1.31.0-rc.0~27401 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=65d2572da001b14da736648b5d6282f22f3d2af6;p=lhc%2Fweb%2Fwiklou.git Fix character access --- 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 ); }