diff --git a/routers/user/home.go b/routers/user/home.go
index a08fae0727..513dd9ce06 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -250,6 +250,9 @@ func Issues(ctx *context.Context) {
 		}
 	}
 	ctx.Data["Repos"] = showRepos
+	if len(repoIDs) == 0 {
+		repoIDs = []int64{-1}
+	}
 
 	issueStats := models.GetUserIssueStats(repoID, ctxUser.ID, repoIDs, filterMode, isPullList)
 	issueStats.AllCount = int64(allCount)