From ce356414d3615ef46c3b01318580fe16f2922a96 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 23 Nov 2013 19:22:03 +0100 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: I807da8c873bb937ee32df75c27d632075bc84be1 --- includes/db/DatabaseOracle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 13bb8ea26d..10715e4ca2 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -1107,7 +1107,7 @@ class DatabaseOracle extends DatabaseBase { if ( $sl < 0 ) { continue; } - if ( '-' == $line{0} && '-' == $line{1} ) { + if ( '-' == $line[0] && '-' == $line[1] ) { continue; } @@ -1121,7 +1121,7 @@ class DatabaseOracle extends DatabaseBase { $dollarquote = true; } } 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