From: umherirrender Date: Sat, 23 Nov 2013 18:22:03 +0000 (+0100) Subject: Use square brackets instead of curly braces for char of a string X-Git-Tag: 1.31.0-rc.0~17934^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=ce356414d3615ef46c3b01318580fe16f2922a96;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ); }