diff options
Diffstat (limited to 'modules/grils')
-rw-r--r-- | modules/grils/grils.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go index 0df93a0..5d548e6 100644 --- a/modules/grils/grils.go +++ b/modules/grils/grils.go | |||
@@ -153,6 +153,10 @@ func (m *GrilsModule) FromID(id int) (*Gril, error) { | |||
153 | } | 153 | } |
154 | 154 | ||
155 | func (m *GrilsModule) FromIDs(ids []int) ([]*Gril, error) { | 155 | func (m *GrilsModule) FromIDs(ids []int) ([]*Gril, error) { |
156 | if len(ids) == 0 { | ||
157 | return make([]*Gril, 0), nil | ||
158 | } | ||
159 | |||
156 | idList := "(" | 160 | idList := "(" |
157 | first := true | 161 | first := true |
158 | for _, v := range ids { | 162 | for _, v := range ids { |