Browse Source

php - fix allwork sorting failure due to multiple <tbody>s

master
kanoi 9 years ago
parent
commit
f98d37d2e5
  1. 4
      pool/page_allwork.php
  2. 4
      pool/page_workers.php

4
pool/page_allwork.php

@ -19,7 +19,7 @@ function doallwork($data, $user)
$instances = 0;
$pg .= worktitle($data, $user);
$pg .= '<tbody>';
$ans = getAllUsers($user);
if ($ans['STATUS'] == 'ok')
{
@ -35,7 +35,7 @@ function doallwork($data, $user)
$title, $instances);
}
}
$pg .= '</tbody>';
$pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid,
$totrate, $blockacc, $blockreward, $instances);

4
pool/page_workers.php

@ -49,7 +49,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff,
$pg = '';
if ($ans['STATUS'] == 'ok')
{
$pg .= '<tbody>';
if (isset($ans['blockacc']))
$blockacc = $ans['blockacc'];
if (isset($ans['blockreward']))
@ -203,7 +202,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff,
$offset++;
}
$pg .= '</tbody>';
}
return $pg;
}
@ -262,9 +260,11 @@ function doworker($data, $user)
$instances = 0;
$pg .= worktitle($data, $user);
$pg .= '<tbody>';
$pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate,
$totinvalid, $totrate, $blockacc, $blockreward,
false, true, true, $title, $instances);
$pg .= '</tbody>';
$pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid,
$totrate, $blockacc, $blockreward, $instances);

Loading…
Cancel
Save