From f98d37d2e5935b7f989305113885e1a7ffebefd3 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 10 May 2016 18:10:27 +1000 Subject: [PATCH] php - fix allwork sorting failure due to multiple s --- pool/page_allwork.php | 4 ++-- pool/page_workers.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pool/page_allwork.php b/pool/page_allwork.php index a188c381..4f62f706 100644 --- a/pool/page_allwork.php +++ b/pool/page_allwork.php @@ -19,7 +19,7 @@ function doallwork($data, $user) $instances = 0; $pg .= worktitle($data, $user); - + $pg .= ''; $ans = getAllUsers($user); if ($ans['STATUS'] == 'ok') { @@ -35,7 +35,7 @@ function doallwork($data, $user) $title, $instances); } } - + $pg .= ''; $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, $instances); diff --git a/pool/page_workers.php b/pool/page_workers.php index 63016010..ed7c7ab1 100644 --- a/pool/page_workers.php +++ b/pool/page_workers.php @@ -49,7 +49,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff, $pg = ''; if ($ans['STATUS'] == 'ok') { - $pg .= ''; if (isset($ans['blockacc'])) $blockacc = $ans['blockacc']; if (isset($ans['blockreward'])) @@ -203,7 +202,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff, $offset++; } - $pg .= ''; } return $pg; } @@ -262,9 +260,11 @@ function doworker($data, $user) $instances = 0; $pg .= worktitle($data, $user); + $pg .= ''; $pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, false, true, true, $title, $instances); + $pg .= ''; $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, $instances);