aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grils')
-rw-r--r--modules/grils/grils.go4
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
155func (m *GrilsModule) FromIDs(ids []int) ([]*Gril, error) { 155func (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 {