Fix for Code

  1. <?php
  2.   for ($i = $length[0] - 1, $j = $length[1] - 1; $i >= 0, $j >= 0; $i--, $j--) {
  3.     // Check if the current token has changed or not.
  4.     if ($tokens[0][$i]['string'] !== $tokens[1][$j]['string']) { // This is line 253.
  5.     // Foo.
  6.     }
  7.   // Bar.
  8. }
  9. // notice: Undefined offset:  -1 in /Users/bart/htdocs/CVS/contrib-6.x-1.x/contributions/modules/atr/modules/atrsimilar/includes/atrsimilar.review.inc on line 253.

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.