Use square brackets instead of curly braces for char of a string
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 19 Mar 2014 19:13:19 +0000 (20:13 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 19 Mar 2014 19:13:19 +0000 (20:13 +0100)
The use of curly braces is deprecated in php 4.0, so changing it to
square brackets

Change-Id: Ia820cea34d2bd92fe1c3bc8fd773942a425ec90a

includes/User.php
includes/specials/SpecialRunJobs.php

index a897d21..dd8717f 100644 (file)
@@ -1123,7 +1123,7 @@ class User {
                } else {
                        $result = 0;
                        for ( $i = 0; $i < strlen( $answer ); $i++ ) {
-                               $result |= ord( $answer{$i} ) ^ ord( $test{$i} );
+                               $result |= ord( $answer[$i] ) ^ ord( $test[$i] );
                        }
                        $passwordCorrect = ( $result == 0 );
                }
index 8a4026d..ab2b16e 100644 (file)
@@ -69,7 +69,7 @@ class SpecialRunJobs extends UnlistedSpecialPage {
                } else {
                        $result = 0;
                        for ( $i = 0; $i < strlen( $cSig ); $i++ ) {
-                               $result |= ord( $cSig{$i} ) ^ ord( $rSig{$i} );
+                               $result |= ord( $cSig[$i] ) ^ ord( $rSig[$i] );
                        }
                        $verified = ( $result == 0 );
                }