Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2020-04-04 09:53:18 +0300
committerGitHub <noreply@github.com>2020-04-04 09:53:18 +0300
commit8d89f84282e63351817a1c76b426087cb668dee0 (patch)
tree4dd58f080e336b1d8d268b5c76434d5f29d99c2b /lib
parent0ad5f4172e0ba85c9dc3d992fa043995b69f5c2a (diff)
parent26c4e3dd9c611ebc5ceb144b7ae5d9677c0cdd9f (diff)
Merge pull request #870 from nextcloud/checkLoadingTimes
Avoid double loading of poll list
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PollController.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Controller/PollController.php b/lib/Controller/PollController.php
index e06fbcc6..725c669f 100644
--- a/lib/Controller/PollController.php
+++ b/lib/Controller/PollController.php
@@ -114,13 +114,11 @@ class PollController extends Controller {
public function list() {
if (\OC::$server->getUserSession()->isLoggedIn()) {
-
$pollList = [];
try {
$polls = $this->pollMapper->findAll();
-
// TODO: Not the elegant way. Improvement neccessary
foreach ($polls as $poll) {
$combinedPoll = (object) array_merge(