瀏覽代碼

* Small readability improvement

git-svn-id: trunk@41806 -
michael 6 年之前
父節點
當前提交
7a95a6cd06
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-web/src/restbridge/sqldbrestjson.pp

+ 1 - 1
packages/fcl-web/src/restbridge/sqldbrestjson.pp

@@ -192,7 +192,7 @@ begin
   if FRow=Nil then
     Raise ESQLDBRest.CreateFmt(Statuses.GetStatusCode(rsError),SErrFieldWithoutRow,[N]);
   D:=FieldToJSON(aPair);
-  if (D=Nil) and ((not HasOption(ooSparse)) or (FRow is TJSONArray)) then
+  if (D=Nil) and ((FRow is TJSONArray) or not HasOption(ooSparse)) then
     D:=TJSONNull.Create;
   if D<>Nil then
     If FRow is TJSONArray then