Automatically fixing internal inconsistencis

pull/1/head
root 15 years ago
parent d27a2d0521
commit 2c334c3d11

@ -94,18 +94,19 @@
print '<td colspan="3" class="DataTD">'._('Internal Error').'</td>'."\n";
} else {
$row = mysql_fetch_array($res, MYSQL_NUM);
if ($HaveTest && $row[1] && ($row[2]>=100)) {
if ($HaveTest && ($row[2]>=100)) {
if (!$row[1]) {
// This should not happen...
fix_assurer_flag($_SESSION['profile']['id']);
}
?> <td colspan="3" class="DataTD"><?=_("You have passed the Assurer Challenge and collected at least 100 Assurance Points, you are an Assurer.")?></td>
<? } elseif (($row[2]>=100) && !$HaveTest) {
?> <td colspan="3" class="DataTD"><?=_("You have at least 100 Assurance Points, if you want to become an assurer try the ").'<a href="https://cats.cacert.org">Assurer Challenge</a>!'?></td>
<? } elseif ($HaveTest && ($row[2]<100)) {
?> <td colspan="3" class="DataTD"><?=_("You have passed the Assurer Challenge, but to become an Assurer you still have to reach 100 Assurance Points!")?></td>
<? } elseif ($HaveTest && !$row[1] && ($row[2]>=100)) {
?> <td colspan="3" class="DataTD"><?=_("There is an internal inconsistence in your account's data, please contact ").'<a href="mailto:cacert-support@lists.cacert.org">cacert-support@lists.cacert.org</a>!'?></td>
</tr>
<? }
}
}
?>
?> </tr>
</table>

Loading…
Cancel
Save