Browse Source

* fix bug in .find (copy-and-paste?) mentioned by Ludo in #22273

git-svn-id: trunk@21635 -
marco 13 years ago
parent
commit
72ab1e632c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-json/src/fpjson.pp

+ 1 - 1
packages/fcl-json/src/fpjson.pp

@@ -2158,7 +2158,7 @@ Var
 
 
 begin
 begin
   I:=IndexOfName(AName);
   I:=IndexOfName(AName);
-  If (I=-1) then
+  If (I<>-1) then
     Result:=Items[i]
     Result:=Items[i]
   else
   else
     Result:=Nil;
     Result:=Nil;