webhook: fix push panic to organizational repository (#4206)

master
Unknwon 2017-02-28 10:28:48 -05:00
parent 193cc3ba9a
commit d43f5f17fd
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.10.1.0228"
const APP_VER = "0.10.2.0228"
func init() {
setting.AppVer = APP_VER

View File

@ -305,7 +305,7 @@ func GetWebhooksByOrgID(orgID int64) (ws []*Webhook, err error) {
// getActiveWebhooksByOrgID returns all active webhooks for an organization.
func getActiveWebhooksByOrgID(e Engine, orgID int64) ([]*Webhook, error) {
ws := make([]*Webhook, 3)
ws := make([]*Webhook, 0, 3)
return ws, e.Where("org_id=?", orgID).And("is_active=?", true).Find(&ws)
}

View File

@ -1 +1 @@
0.10.1.0228
0.10.2.0228