Explorar o código

Merge branch 'master' of https://github.com/xormplus/xorm

xormplus %!s(int64=9) %!d(string=hai) anos
pai
achega
a33fd44f5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sessionplus.go

+ 1 - 1
sessionplus.go

@@ -132,7 +132,7 @@ func (resultMap *ResultMap) ListPage(firstResult int, maxResults int) ([]map[str
 	if resultMap.Results == nil {
 		return nil, nil
 	}
-	if firstResult >= maxResults {
+	if firstResult > maxResults {
 		return nil, ErrParamsFormat
 	}
 	if firstResult < 0 {