Fix typo
Cette révision appartient à :
Parent
4c277cc179
révision
b44c37a67a
|
@ -41,7 +41,7 @@ func UploadHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
var sameTorrents int
|
||||
db.ORM.Model(&model.Torrent{}).Where("torrent_hash = ?", uploadForm.Infohash).Count(&sameTorrents)
|
||||
if (sameTorrents > 0) {
|
||||
if (sameTorrents == 0) {
|
||||
//add to db and redirect depending on result
|
||||
torrent := model.Torrent{
|
||||
Name: uploadForm.Name,
|
||||
|
|
Référencer dans un nouveau ticket