Commit a722a1fe authored by Steven Wittens's avatar Steven Wittens

Typoe

parent d41c4f23
......@@ -91,7 +91,9 @@ function poll_help() {
<?php
}
function poll_graph($val, $clrfill = "#000000", $clrempty = "#ffffff") {
function poll_graph($val, $clrfill, $clrempty) {
$clrfill = $clrfill ? $clrfill : "#ffffff";
$clrempty = $clrempty ? $clrempty : "#000000";
$p = round($val * 100);
return "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>" . ($p ? "<td width=\"" . $p . "%\" style=\"background-color: $clrfill;\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>" : "") . ($p < 100 ? "<td style=\"background-color: $clrempty;\" width=\"" . (100 - $p) . "%\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>":"") . "</tr></table>";
}
......
......@@ -91,7 +91,9 @@ function poll_help() {
<?php
}
function poll_graph($val, $clrfill = "#000000", $clrempty = "#ffffff") {
function poll_graph($val, $clrfill, $clrempty) {
$clrfill = $clrfill ? $clrfill : "#ffffff";
$clrempty = $clrempty ? $clrempty : "#000000";
$p = round($val * 100);
return "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>" . ($p ? "<td width=\"" . $p . "%\" style=\"background-color: $clrfill;\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>" : "") . ($p < 100 ? "<td style=\"background-color: $clrempty;\" width=\"" . (100 - $p) . "%\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>":"") . "</tr></table>";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment